App-File-Grepper
view release on metacpan or search on metacpan
app_usage(\*STDERR, 1) unless @ARGV;
if ( $ENV{LANG} =~ /\.utf-?8$/i ) {
require Encode;
$clo->{pattern} = Encode::decode( "utf8", $clo->{pattern} );
}
# Plug in command-line options.
@{$options}{keys %$clo} = values %$clo;
if ( $options->{debug} ) {
use Data::Dumper;
warn Dumper $options;
}
$options;
}
sub app_ident {
my ($fh) = @_;
print {$fh} ("This is ",
$my_package
( run in 0.495 second using v1.01-cache-2.11-cpan-4d50c553e7e )