Skip navigation.
Home
Your source for Perl tips, howto's, faq and tutorials
( categories: )

Use the @ARGV array in scalar context

Example:
if ( @ARGV > 0 )
{
  print "Number of arguments: " . scalar @ARGV . "\n";
}
else
{
  print "No arguments!\n";
}