Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Multiple Arguments

by moxliukas (Curate)
on Jul 22, 2002 at 09:02 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://183983]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2024-04-23 21:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found