]> git.donarmstrong.com Git - biopieces.git/blobdiff - code_perl/Maasha/Patscan.pm
fixed stupid windows \r bug in Patscan::read_patterns
[biopieces.git] / code_perl / Maasha / Patscan.pm
index 1729488db816411cab307e1967c02e7cfda3189c..6de7368570988f87eb74a17721f77a96f95cdda8 100644 (file)
@@ -59,7 +59,7 @@ sub read_patterns
 
     while ( $line = <$fh> )
     {
-        chomp $line;
+        $line =~ s/\r\n//g;
 
         next if $line eq "";