Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^2: Are there argc and argv type functions in perl

by Anonymous Monk
on Jun 04, 2010 at 12:45 UTC ( [id://843106]=note: print w/replies, xml ) Need Help??


in reply to RE: Are there argc and argv type functions in perl
in thread Are there argc and argv type functions in perl

my $argc = @ARGV; print "There are $argc args.\n";

Replies are listed 'Best First'.
Re^3: Are there argc and argv type functions in perl
by Anonymous Monk on Jun 08, 2010 at 16:09 UTC
    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://843106]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2024-12-09 07:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which IDE have you been most impressed by?













    Results (53 votes). Check out past polls.