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

Re: [PATCH] Remove implicit split to @_

Thread Previous | Thread Next
From:
Yitzchak Scott-Thoennes
Date:
July 10, 2009 10:49
Subject:
Re: [PATCH] Remove implicit split to @_
Message ID:
56675.97.113.117.246.1247248135.squirrel@webmail.efn.org
On Fri, July 10, 2009 8:55 am, Chas. Owens wrote:
> The question is when do you want to know how many items a string can
> be split into without actually splitting the line?

Apparently it's something Schwern has wanted for some time, and since
he has gone to the trouble of actually writing a patch, his voice has
a good deal of weight behind it.

> If you are going to
> split the line, then you can ask the array how many elements it has.  I
> really don't see how scalar split (without splitting into @_ or some other
> variable) is useful.  Why not have it split into @F?  @F is already used
> with -a, and is documented in perlvar, so it shouldn't be in use by
> anyone.

IMO, experience has shown that kind of action at a distance in language
design to be a Bad Thing(TM).


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