in reply to Reading command line flags into variables...?
Of course, if you want a fancier level of flag passing, such as optional parameters, then I recommend using one of the previously mentioned modules. I have rolled my own command line parser, and while it was fun, it was also a serious chunk of code. Don't go down that route.die "usage: script.pl firstName lastName\n" unless 2 == @ARGV; my ( $firstName, $lastName ) = @ARGV;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(Coyote) Re: Re: Reading command line flags into variables...?
by Coyote (Deacon) on Feb 01, 2001 at 07:52 UTC |