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

Re: [FWP] awww, no fun :(



On Fri, 13 Apr 2001 at 06:24:24 -0700, Randal L. Schwartz wrote:

> Is that the appropriate question?  If it's not keeping you from
> writing code, and there's little or no support cost to keeping it
> working, then it doesn't need to be deprecated in Perl5.  After all,
> it's been around since Perl1 (or Perl2?).  Warn yes.  Change no.
> Somebody might still be counting on it working.  What good does it do
> to break that?

Yes - it does work in perl 1, but you need to write it like this:

perl1 -e 'sub foo { last; }; while (1) { do foo(); }'

Warnings? What's a "warning"?

Ian
--
And, in deference to Randal, how else could I end this except for this
FWP:

perl -e '$_=",rekcah 1 lreP rehtona tsuJ";
sub f{last unless $_;print chop;}; while(1){ do f(); }'

... which works in perl 1 and perl 5.6.0

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