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

Re: [PATCH] Remove implicit split to @_

Thread Previous | Thread Next
From:
David E. Wheeler
Date:
July 9, 2009 15:56
Subject:
Re: [PATCH] Remove implicit split to @_
Message ID:
B2FDA21A-9A6D-4174-A29D-312A1061B8B7@kineticode.com
On Jul 9, 2009, at 3:44 PM, Yitzchak Scott-Thoennes wrote:

> I'm not completely satisfied that "fixing" scalar context is the right
> thing to do; just like with sort, where there are several "right"  
> scalar
> context behaviors.
>
> With my C hat on, I'd expect it to return the first field, like  
> strtok.
> Without it, I'd be as inclined to expect the last field as to expect
> a count.

Sound like either way you wouldn't be expecting an error, yes?

Best,

David

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