Seventh has asked for the wisdom of the Perl Monks concerning the following question:
use Getopt::Long; use strict; use Data::Dumper; use IO::File; my ($read,$generate,$help); # option switches GetOptions ( "help" => \$help, "read" => \$read, "generate" => \$generate, );
if ($read) { - code snippets - }
my ($read,$generate,$help); # option switches GetOptions ( "h" => \$help, "help" => \$help, "r" => \$read, "read" => \$read, "g" => \$generate, "generate" => \$generate, );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Need help using Getopt, please.
by trammell (Priest) on Jan 21, 2005 at 16:32 UTC | |
by Seventh (Beadle) on Jan 21, 2005 at 16:45 UTC | |
|
Re: Need help using Getopt, please.
by davido (Cardinal) on Jan 21, 2005 at 16:40 UTC | |
by Seventh (Beadle) on Jan 21, 2005 at 16:46 UTC | |
|
Re: Need help using Getopt, please.
by bgreenlee (Friar) on Jan 21, 2005 at 16:41 UTC |