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!