Also you can use the Perl map operator:
map { print "$_\n" } @ARGV;
instead of:
foreach $argnum (0 .. $#ARGV) { print "$ARGV[$argnum]\n"; }
You can use Perl map
Also you can use the Perl map operator:
map { print "$_\n" } @ARGV;instead of:
foreach $argnum (0 .. $#ARGV) { print "$ARGV[$argnum]\n"; }