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,

loris


"It took Loris ten minutes to eat a satsuma . . . twenty minutes to get from one end of his branch to the other . . . and an hour to scratch his bottom. But Slow Loris didn't care. He had a secret . . ."