I don't know of any inherent property you could check to see if next had fired. You could set a flag on entry and clear it at the end of the loop block:
my $next_flag; for (@foo) { $next_flag = 1; # my $next_flag = 1; # scope problem # do stuff $next_flag = 0; } continue { warn 'nexted!' if $next_flag; # go on }
Update: Thanks, ikegami, repaired.
After Compline,
Zaxo
In reply to Re: Continue block entry
by Zaxo
in thread Continue block entry
by prowler
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |