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

Re: [perl #120047] perl should enable "$_" for use before callingsubs

Thread Previous | Thread Next
Ricardo Signes
September 29, 2013 23:14
Re: [perl #120047] perl should enable "$_" for use before callingsubs
Message ID:
* Linda Walsh via RT <> [2013-09-29T16:24:53]
> There may also be cases where passing the changed value is desired, but
> that's why lexical "$_" was created -- to allow $_ to use it locally,
> but not propagate it's value to called routines.  Except that feature
> was removed without deprecation in 5.18 and replaced with an
> experimental one (but that's a different bug/discussion).

You are mistaken.  The behavior of "my $_" was not significantly changed, other
than to add a warning indicating that it was now considered experimental,
because it seems to be in need of fixing to behave unsurprisingly.


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