On Thu, Apr 12, 2001 at 09:48:18PM +0200, Abigail wrote: > It's documented to work this way in perlsyn. > > (Did noone here bother to read the documentation?) I looked, but perlsyn is big. I looked harder and found it. The LABEL [on a while loop] 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" praga or the -w flag. The docs imply its the wrong behavior (any feature described as "desperate" is probably dubious) but kept around for historical reasons. This feature should probably be deprecated and the warning on sub foo { last } be made more severe. -- Michael G. Schwern <schwern@pobox.com> http://www.pobox.com/~schwern/ Perl6 Quality Assurance <perl-qa@perl.org> Kwalitee Is Job One yes i am hungry yes lick my fucking kitchen all i have is paste -- Fmh ==== Want to unsubscribe from Fun With Perl? Well, if you insist... ==== Send email to <fwp-request@technofile.org> with message _body_ ==== unsubscribe