dusk has asked for the wisdom of the Perl Monks concerning the following question:
Fellow monks, I am having a problem using $ARGV as I intend, here is the problem:
I am trying to force that 3 mandatory arguments are included at execution. for example:
die "Usage: $0 [arg] [arg] [arg]\n" unless ($ARGV[0], $ARGV[1], $ARGV[2]);
However, this doesn't work... Any ideas what will?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: $ARGV dilemma
by blue_cowdawg (Monsignor) on May 27, 2001 at 15:42 UTC | |
by blakem (Monsignor) on May 27, 2001 at 16:47 UTC | |
by blue_cowdawg (Monsignor) on May 27, 2001 at 16:52 UTC | |
Re: $ARGV dilemma
by dusk (Friar) on May 27, 2001 at 06:11 UTC | |
by dws (Chancellor) on May 27, 2001 at 07:42 UTC | |
by wog (Curate) on May 27, 2001 at 07:41 UTC |
Back to
Seekers of Perl Wisdom