i dunno if I understood it but:
for my $i (0 .. $#records) { # check here sleep (10) if $i == 11; $records[$i]->{line} = $i + 1; # print HERE not outside the loop }
You basically check if you are processing the 11th element and sleep.
L*
In reply to Re: Break Array loop
by Discipulus
in thread Break Array loop
by snehit.ar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |