in reply to print the array using command line arguements
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,
|
|---|