in reply to Continue block entry
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Continue block entry
by prowler (Friar) on May 10, 2005 at 05:56 UTC | |
by demerphq (Chancellor) on May 10, 2005 at 06:48 UTC | |
|
Re^2: Continue block entry
by ikegami (Patriarch) on May 10, 2005 at 16:54 UTC |