From: martinahansen Date: Thu, 21 Feb 2013 13:46:28 +0000 (+0000) Subject: fixed nasty bug in grab where -E and pattern 0 failed X-Git-Url: https://git.donarmstrong.com/?p=biopieces.git;a=commitdiff_plain;h=66e37f15fc46a64b40b7eee01b0b9fa48ef91ddc fixed nasty bug in grab where -E and pattern 0 failed git-svn-id: http://biopieces.googlecode.com/svn/trunk@2099 74ccb610-7750-0410-82ae-013aeee3265d --- diff --git a/bp_bin/grab b/bp_bin/grab index 3aefa1b..8533a4e 100755 --- a/bp_bin/grab +++ b/bp_bin/grab @@ -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 }; } }