Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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.
  • Comment on RE: Are there argc and argv type functions in perl

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 learning in the Monastery: (4)
As of 2024-12-09 06:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which IDE have you been most impressed by?













    Results (53 votes). Check out past polls.