]> git.donarmstrong.com Git - biopieces.git/commitdiff
fixed divide bug in compute
authormartinahansen <martinahansen@74ccb610-7750-0410-82ae-013aeee3265d>
Thu, 18 Apr 2013 08:17:30 +0000 (08:17 +0000)
committermartinahansen <martinahansen@74ccb610-7750-0410-82ae-013aeee3265d>
Thu, 18 Apr 2013 08:17:30 +0000 (08:17 +0000)
git-svn-id: http://biopieces.googlecode.com/svn/trunk@2162 74ccb610-7750-0410-82ae-013aeee3265d

bp_bin/compute

index 6bdb105b29402859b23fffce2fb88eca15bfe986..0bcd6ca9fe6bea499411b1dc207bfcbc4a2bd64e 100755 (executable)
@@ -64,7 +64,7 @@ while ( $record = Maasha::Biopieces::get_record( $in ) )
 
         map { $eval_val =~ s/\Q$_\E/$record->{ $_ }/g } @keys;
 
-        if ( $eval_val =~ /\+|\-|\*|\\/ or $eval_val =~ /\s+x\s+/)
+        if ( $eval_val =~ /\+|\-|\*|\// or $eval_val =~ /\s+x\s+/)
         {
             $record->{ $eval_key } = eval "$eval_val";
             Maasha::Common::error( qq(eval "$eval_key = $eval_val" failed -> $@) ) if $@;