Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Multiple Arguments

by moxliukas (Curate)
on Jul 22, 2002 at 09:02 UTC ( #183983=note: print w/replies, xml ) Need Help??


in reply to Multiple Arguments

Well, all the arguments are stored in @ARGV array, so you can get the length of it with

scalar @ARGV;

or alternatively, you can find the number of the last element with

$#ARGV;

I hope that helps...

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://183983]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2018-02-20 02:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When it is dark outside I am happiest to see ...














    Results (266 votes). Check out past polls.

    Notices?