The following: ### <snip> $subset = join(",",@ARGV); print "subset=$subset\n"; @array=(1..10); print @array[$subset]; ### </snip>
gives the expected output if you pass a single number to @ARGV from the command line. For example, 'test.pl 3' will give an output of 4. However, if you give @ARGV multiple values like so: test.pl 3,4,5 test.pl 3 4 5 test.pl 3..5 test.pl 3-5 you get an output of '1'. In the latter 4 examples I want to get a return of '4 5 6'. How do I get $subset to interpolate properly, i.e. do what I mean, not what I say? :) Thanks -Pete _______________________________________________ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs