note
Fengor
The problem in your code is the line <code>my @new = @array[join(",",@ARGV)];</code> <strike>because the first element of @ARGV is the program name</strike> <i> [Fengor] writes a 100 times ksh is not perl</i>
try <code>
#!/usr/bin/perl
use strict;
use warnings;
my @array = ( 11,12,13,14,15);
#my @new = @array[join(",",@ARGV)];
#my @new = @array[1,3];
my @new = @array[$ARGV[0],$ARGV[1]];
print "@new\n";
</code>
<!-- Node text goes above. Div tags should contain sig only -->
<div class="pmsig"><div class="pmsig-5421">
<p>--<br>
"WHAT CAN THE HARVEST HOPE FOR IF NOT THE CARE OF THE REAPER MAN"<br>
-- Terry Pratchett, "Reaper Man"
</div></div>
586888
586888