in reply to
print the array using command line arguements
The problem in your code is the line my @new = @array[join(",",@ARGV)];
because the first element of @ARGV is the program name Fengor writes a 100 times ksh is not perl
my @array = ( 11,12,13,14,15);
#my @new = @array[join(",",@ARGV)];
#my @new = @array[1,3];
my @new = @array[$ARGV,$ARGV];
"WHAT CAN THE HARVEST HOPE FOR IF NOT THE CARE OF THE REAPER MAN"
-- Terry Pratchett, "Reaper Man"