in reply to Is it possible to include GetOpt flags in $0

In Perl the parameters are passed in a special list called @ARGV.
An example of accessing them is:
my $variable1 = $ARGV[0]; my $variable2 = $ARGV[1]; # etc..

Replies are listed 'Best First'.
Re: Re: Is it possible to include GetOpt flags in $0
by roik (Scribe) on Oct 24, 2002 at 14:00 UTC
    Update - having noticed that c is an Abbot I expect (s)he knows this and is after something more esoteric! No patronisation intended!

      Someone can become a Saint without knowing diddly squat about Perl. All it takes is some clever replies that draw upvotes and time. Do not assume that simply because someone has moved up the "ranks" here that they are Perl experts.

      Update: Reworded... Must not have had enough caffeine in my blood system yet.