]> git.donarmstrong.com Git - biopieces.git/commitdiff
fixed nasty bug in grab where -E and pattern 0 failed
authormartinahansen <martinahansen@74ccb610-7750-0410-82ae-013aeee3265d>
Thu, 21 Feb 2013 13:46:28 +0000 (13:46 +0000)
committermartinahansen <martinahansen@74ccb610-7750-0410-82ae-013aeee3265d>
Thu, 21 Feb 2013 13:46:28 +0000 (13:46 +0000)
git-svn-id: http://biopieces.googlecode.com/svn/trunk@2099 74ccb610-7750-0410-82ae-013aeee3265d

bp_bin/grab

index 3aefa1b81d3a237f1ca03c6383f9474a221881e0..8533a4ea3bcff4f398863b6113f7819203a80f9a 100755 (executable)
@@ -158,7 +158,7 @@ sub grab_lookup
         }
 
         if ( not $keys_only ) {
-            map { return 1 if $record->{ $_ } and exists $lookup_hash->{ $record->{ $_ } } } keys %{ $record };
+            map { return 1 if defined $record->{ $_ } and exists $lookup_hash->{ $record->{ $_ } } } keys %{ $record };
         }
     }