develooper Front page | perl.perl5.porters | Postings from August 2001

Re: [PATCH] Add a nextstate into empty blocks

Thread Previous
From:
Abigail
Date:
August 21, 2001 13:44
Subject:
Re: [PATCH] Add a nextstate into empty blocks
Message ID:
20010821204053.7360.qmail@foad.org
On Sun, Aug 19, 2001 at 09:55:51PM -0600, Sean M. Burke wrote:
> At 11:24 PM 2001-08-19 +0300, Ilmari Karonen wrote:
> >Besides, "returns the value of the last expression" describes the
> >current behavior only if you adopt a perversely convoluted definition of
> >"last expression", [...]
> 
> I quite agree.
> One can imagine objections to changing the current behavior (hopefully
> objections something other than "current behavior is always right, by
> definition"), but I'd be quite surprised if anyone anywhere could possibly
> have written code that relies on the current behavior.

Well.... I *do* have

    perl -wle 'print sub {} -> ("Just another Perl Hacker")'

and

    perl -wle 'sub _ (&@) {print pop -> (pop)} _ {} "Just another Perl Hacker"'


in my list of JAPHs.


But I admit this was triggered by a recent bug report (by Dominus?) on
this mailing list. (Well, were else do you think I get the ideas for
Japhs from?)



Abigail

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About