Massyn has asked for the wisdom of the Perl Monks concerning the following question:
#!/fellow/monks.pl
I've gone through the migration of a particular shell script to perl. To complete the migration, I need to count the number of parameters passed to the script via the command line.
In shell, it seems to be the $# command. How would I cound the number of parameters passed to @ARGV?
Thanks!
#!/massyn.pl The early worm gets caught by the bird.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Count the number of parameters
by Anonymous Monk on Jun 02, 2003 at 03:36 UTC | |
by Juerd (Abbot) on Jun 02, 2003 at 05:25 UTC | |
by Massyn (Hermit) on Jun 02, 2003 at 03:39 UTC | |
by vek (Prior) on Jun 02, 2003 at 04:31 UTC | |
|
Re: Count the number of parameters
by Itatsumaki (Friar) on Jun 02, 2003 at 03:40 UTC |