[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [FWP] awww, no fun :(



Jeff Pinyan wrote:
> 
> On Apr 12, Michael G Schwern said:
> 
> >  perl -wle 'sub foo { last; } while(1) { foo() }'
> >
> >In any sane universe, that loop would never exit.  In perl's, it exits
> >on the first iteration (with a warning).
> 
> Except that this functionality was explicitly added to Perl, around 5.005
> I believe.

That doesn't sound right.  Cite, please?  I don't have an older Perl
than 5.005 lying around but I think it behaved that way before too. 
Maybe just the warning is new.

-- 
Rick Delaney
rick.delaney@home.com

==== Want to unsubscribe from Fun With Perl?  Well, if you insist...
==== Send email to <fwp-request@technofile.org> with message _body_
====   unsubscribe