Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Is it possible to include GetOpt flags in $0

by roik (Scribe)
on Oct 24, 2002 at 13:54 UTC ( [id://207709]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://207709]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (3)
As of 2024-04-25 05:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found