develooper Front page | perl.perl5.porters | Postings from February 2013

Re: Salvaging lexical $_ from deprecation

Thread Previous | Thread Next
Ed Avis
February 20, 2013 09:40
Re: Salvaging lexical $_ from deprecation
Message ID:
Rafael Garcia-Suarez <rgs <at>> writes:

>So, to be clear: $_ is still global by default due to the need for
>backwards compatibility.

>Other punctuation variables do not suffer from this drawback. For
>example the $1, $2... capture variables are already automatically

IMHO, the situation with $1 is rather an ugly mess and should not be
extended to anything else... but that's a whole nother topic I hope.

Ed Avis <>

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About