To get the number of parameters, you use @ARGV in scalar context:$ perl -e 'print @_;print "::\n";print @ARGV;' camel :: camel
$ perl -e ''print scalar @ARGV;' my camel 2
CU
Robartes-
In reply to Re: Test for parameters?
by robartes
in thread Test for parameters?
by Guildencrantz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |