develooper Front page | perl.perl5.porters | Postings from July 2009

Re: [PATCH] Remove implicit split to @_

Thread Previous | Thread Next
Rafael Garcia-Suarez
July 10, 2009 08:47
Re: [PATCH] Remove implicit split to @_
Message ID:
2009/7/10 Aristotle Pagaltzis <>:
> * Ben Morrow <> [2009-07-10 17:25]:
>> One good reason might be: someone who writes something on 5.12,
>> and doesn't know the history of scalar split, will get a nasty
>> surprise when they run that code on <=5.10.
> The default could be to die in scalar context, and returning a
> count could require `use 5.011`.

I wouldn't favor shoving all possible incompatible behaviours in lexical hints.
Or keeping two versions of the split source code in Perl forever.
After all, split in scalar context will warn on <=5.10, and possibly
tests will fail, so we can suppose this kind of incompatible change is
reasonably safe. We're speaking about newly written code here, not old

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