Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
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?
[choroba]: Good morning!

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (7)
As of 2018-06-22 07:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?



    Results (122 votes). Check out past polls.

    Notices?