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

Re: split in scalar context [was: Alarums and Excursions]

Thread Previous | Thread Next
From:
Peter Scott
Date:
July 29, 2008 09:51
Subject:
Re: split in scalar context [was: Alarums and Excursions]
Message ID:
6.2.3.4.2.20080729094737.031a9720@mail.webquarry.com
At 03:05 AM 7/29/2008, Nicholas Clark wrote:
>On Tue, Jul 29, 2008 at 03:01:16AM -0700, Peter Scott wrote:
> > Aha.  So I am not the only one with a use for split() in scalar context.
> > So can we please eliminate the annoying warning
> >
> >   Use of implicit split to @_ is deprecated
> >
> > that it generates (when you enable warnings, which Tom didn't)?  Why it
> > ever split to @_ I don't know and don't want to, but this has been
> > deprecated roughly forever and surely it is time to move to the
> > post-deprecation phase of removal.
>
>By which you mean remove the assignment to @_, and the warning, but keep
>the behaviour demonstrated above working?  [Returns count]

Yes.  Please.


-- 
Peter Scott
Pacific Systems Design Technologies
http://www.perldebugged.com/
http://www.perlmedic.com/



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