Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

RE: Are there argc and argv type functions in perl

by Anonymous Monk
on Mar 12, 2000 at 00:14 UTC ( [id://5214]=note: print w/replies, xml ) Need Help??


in reply to Are there argc and argv type functions in perl

try the @ARGV array. $ARGV[0] is the first commandline parameter, though.

Replies are listed 'Best First'.
Re^2: Are there argc and argv type functions in perl
by Anonymous Monk on Jun 04, 2010 at 12:45 UTC
    my $argc = @ARGV; print "There are $argc args.\n";
      Nice, you answered a ten-year old, already perfectly answered question with an unnecessary two-liner... ;-)
        But it helped me!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (6)
As of 2024-03-28 14:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found