On Wed, Aug 01, 2001 at 01:41:59AM +0200, Abigail <[EMAIL PROTECTED]> wrote:
> > not in my copy of perlsyn (from perl-5.7.2).
> Lines 113, 120, and 255 of my copy of perlsyn.pod in perl-5.7.2.

Sorry, still not in my copy of perlsyn.pod from 5.7.2. Although there is
something very similar I overlooked the last time when looking for it. The
example in line 120 (the other examples talk about next) says:

   For C<last>, you have to be more elaborate:

       LOOP: { 
               do {
                   last if $x = $y**2;
                   # do something here
               } while $x++ <= $z;
       }

Not reading the context, I admit that I don't understand why you have to
be "more elaborate" for last, but perlsyn actually says that your example
does not work:

   You can always put another block inside of it (for C<next>) or around
   it (for C<last>) to do that sort of thing.  For C<next>, just double
   the braces:

I think it's quite arrogant from you to tell people: "straight from
the docs" when, in fact, the documentation says something completely
different.

-- 
      -----==-                                             |
      ----==-- _                                           |
      ---==---(_)__  __ ____  __       Marc Lehmann      +--
      --==---/ / _ \/ // /\ \/ /       [EMAIL PROTECTED]      |e|
      -=====/_/_//_/\_,_/ /_/\_\       XX11-RIPE         --+
    The choice of a GNU generation                       |
                                                         |

Reply via email to