]> git.donarmstrong.com Git - biopieces.git/blobdiff - bp_bin/grab
fixed nasty bug in grab where -E and pattern 0 failed
[biopieces.git] / 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 };
         }
     }