in reply to resetting a loop
foreach my $No (@Nos){ push(@String, $Chains{$chain}{$No}) ; $prevNo = $No; shift(@Nos); print "@Nos\n"; } [download]