in reply to RFC Getopt::Hash
... use Getopt::Long; use Pod::Usage; ... GetOptions( 'd|dir=s' => \( my $outDir = '.' ), 'f|file=s' => \( my $inFile ), 'l|log=s' => \( my $logFile = './tu_log.conf' ), ); unless ( $inFile ) { pod2usage( -exitval => 1, -output => \*STDERR ); } ... __END__ =pod =head1 NAME Retail_PickList_Generator.pl - generate picklists for outstanding +Retail orders. =head1 SYNOPSIS Retail_PickList_Generator.pl --file <incoming retail order file> [ +--log <log config file> --dir <directory to write picklists to>] =cut
...it is better to be approximately right than precisely wrong. - Warren Buffet
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: RFC Getopt::Hash
by radiantmatrix (Parson) on Aug 10, 2005 at 13:31 UTC |