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

RE: [PATCH] Add a nextstate into empty blocks

Thread Previous | Thread Next
Arthur Bergman
August 19, 2001 10:28
RE: [PATCH] Add a nextstate into empty blocks
Message ID:
> > What does the backword compatibility police say?
> I was rather expecting to break some obscure test case relying on the
> IMHO broken stack handling, but no such thing happens.  The original
> behavior is undocumented, and apparently anyone who has stumbled onto it
> has found it too confusing to actually use.  (For details on just how
> confusing, see the comp.lang.perl.misc thread on this.)

It is changing to definition from "Returns the value of the last expression" to "Returns the value of the last expression in the subroutine". Even if it seems more sane this way.

> -- 
> # Ilmari Karonen --
> y/n/\n/,s/\d+/$"x$&/eg,print for qw'n4|9|21|3|n1\2||2|(_-<2_|4_`1|3\3_1\2_|3\3
> -_)2_|n\__/\_,_|___/\__|2\__,_|_|1_|\___/\__|_|1_|\___|_|nn4_1\9|3|14|n4__/1-_
> )2_|1|5\3_`1|2_|1!1/2-_)2_|n3_|1\___|_|2_|2_|1_|\__,_|\__|_i_\\\___|_|1)n45/n'


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About