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

Re: [PATCH] Remove implicit split to @_

Thread Previous | Thread Next
From:
Rafael Garcia-Suarez
Date:
July 9, 2009 23:10
Subject:
Re: [PATCH] Remove implicit split to @_
Message ID:
b77c1dce0907092310o46d183abob03dee5949338f0f@mail.gmail.com
2009/7/10 Chip Salzenberg <chip@pobox.com>:
> On Thu, Jul 09, 2009 at 09:28:14PM -0700, Chip Salzenberg wrote:
>> I favor simply making it a compile-time error to use split in scalar
>> context.  No problem with silently changing semantics and no more surprising
>> behavior.  Everybody's happy.  (right?)
>
> ... and, of course, a runtime error if the split is in undetermined context
> at compile time and in scalar context at runtime.

+1
That strikes me as a noble endeavor.

Thread Previous | Thread Next


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