Hi,
Try:
my @new = @array[@ARGV];
The problem with your join is that you get a string containing commas, which cannot be treated as an integer. It will only work if you give just one index on the command line, since the join will not then introduce any commas.
HTH,
In reply to Re: print the array using command line arguements
by loris
in thread print the array using command line arguements
by greatshots
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |