b4swine has asked for the wisdom of the Perl Monks concerning the following question:
The LABEL identifies the loop for the loop control statements next, last, and redo. If the LABEL is omitted, the loop control statement refers to the innermost enclosing loop. This may include dynamically looking back your call-stack at run time to find the LABEL. Such desperate behavior triggers a warning if you use the use warnings pragma or the -w flag.
Can someone explain? What is this desperate behavior? I feel very uncomfortable when I read a sentence that makes no sense to me. An example would be most appreciated.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Desparate behavior in loop labels
by GrandFather (Saint) on Aug 29, 2007 at 03:00 UTC | |
by b4swine (Pilgrim) on Aug 29, 2007 at 03:07 UTC | |
by amarquis (Curate) on Aug 29, 2007 at 12:59 UTC | |
by mr_mischief (Monsignor) on Aug 29, 2007 at 16:03 UTC | |
|
Re: Desparate behavior in loop labels
by Errto (Vicar) on Aug 29, 2007 at 03:05 UTC | |
|
Re: Desparate behavior in loop labels
by lodin (Hermit) on Aug 29, 2007 at 03:05 UTC |