X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=bp_bin%2Funiq_vals;h=c9af962ad6b5a58ec21e1cac6c2132eb31734316;hb=2f0fd91b461033529a4a72e161bd133252a22eb6;hp=0bc6ce0aa8adcf017fe1742a07892e29b7e663f2;hpb=9bf550c4335d8860c5f6f9c4db0f385f1b36c1dd;p=biopieces.git diff --git a/bp_bin/uniq_vals b/bp_bin/uniq_vals index 0bc6ce0..c9af962 100755 --- a/bp_bin/uniq_vals +++ b/bp_bin/uniq_vals @@ -48,7 +48,7 @@ $out = Maasha::Biopieces::write_stream( $options->{ "stream_out" } ); while ( $record = Maasha::Biopieces::get_record( $in ) ) { - if ( $record->{ $options->{ "key" } } ) + if ( exists $record->{ $options->{ "key" } } ) { if ( not $hash{ $record->{ $options->{ "key" } } } and not $options->{ "invert" } ) {