in reply to Re^2: help writing simple perl script
in thread help writing simple perl script

Ahh, ok, different problem. Just change the inner loop to
foreach my $j ($i..$#arr){