]> git.donarmstrong.com Git - biopieces.git/commitdiff
fixed stupid windows \r bug in Patscan::read_patterns
authormartinahansen <martinahansen@74ccb610-7750-0410-82ae-013aeee3265d>
Thu, 17 Nov 2011 10:59:54 +0000 (10:59 +0000)
committermartinahansen <martinahansen@74ccb610-7750-0410-82ae-013aeee3265d>
Thu, 17 Nov 2011 10:59:54 +0000 (10:59 +0000)
git-svn-id: http://biopieces.googlecode.com/svn/trunk@1657 74ccb610-7750-0410-82ae-013aeee3265d

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 "";