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

Re: [PATCH] Remove implicit split to @_

Thread Previous | Thread Next
Yitzchak Scott-Thoennes
July 10, 2009 10:49
Re: [PATCH] Remove implicit split to @_
Message ID:
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 Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About