From: martinahansen Date: Thu, 17 Nov 2011 10:59:54 +0000 (+0000) Subject: fixed stupid windows \r bug in Patscan::read_patterns X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=470f9b942318450c351a5a9ea676b1e3207ba3dc;p=biopieces.git fixed stupid windows \r bug in Patscan::read_patterns git-svn-id: http://biopieces.googlecode.com/svn/trunk@1657 74ccb610-7750-0410-82ae-013aeee3265d --- diff --git a/code_perl/Maasha/Patscan.pm b/code_perl/Maasha/Patscan.pm index 1729488..6de7368 100644 --- a/code_perl/Maasha/Patscan.pm +++ b/code_perl/Maasha/Patscan.pm @@ -59,7 +59,7 @@ sub read_patterns while ( $line = <$fh> ) { - chomp $line; + $line =~ s/\r\n//g; next if $line eq "";