8 my $conf = {}; # configuration hashref
11 open FP, '<', shift or die "Can't open input file: $!\n";
21 # set mode on existing filehandles
22 binmode(STDIN, ':utf8');
24 my $rc = GetOptions( $c,
28 show_help() unless $rc;
29 show_help() if ($c->{help});
31 my @keys = keys %{$c};
32 show_help() unless (@ARGV and @keys);
33 for my $key ('prefix')
34 { push @missing, $key unless $c->{$key} }
36 print "Required option: ", join(', ', @missing), " missing!\n";
43 Usage is: compress_fingerprints -p PREFIX INPUTFILE