X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=bp_bin%2Funiq_vals;h=c9af962ad6b5a58ec21e1cac6c2132eb31734316;hb=2f0fd91b461033529a4a72e161bd133252a22eb6;hp=c9bf842bc78a4a2e409bcd12a870dc8c6da25a97;hpb=5aed4676ad1bf35abbade6215ac90ee591e6d8fe;p=biopieces.git diff --git a/bp_bin/uniq_vals b/bp_bin/uniq_vals index c9bf842..c9af962 100755 --- a/bp_bin/uniq_vals +++ b/bp_bin/uniq_vals @@ -26,6 +26,7 @@ # >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< +use warnings; use strict; use Maasha::Biopieces; @@ -47,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" } ) {