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

Re: Salvaging lexical $_ from deprecation

Thread Previous | Thread Next
Rafael Garcia-Suarez
February 26, 2013 22:03
Re: Salvaging lexical $_ from deprecation
Message ID:
On 26 February 2013 02:23, Aaron Priven <> wrote:
> I wanted to say something about the lexical $_ debate, even though the
> conversation mostly stopped a week ago.
> $_ is useful only insofar as it avoids extra typing. There's no advantage
> over regular alphanumeric variables other than that.

Funnily enough, I seem to have answered preventively to that last week
on twitter:
"The point of the $_ variable in Perl is not to avoid extra typing,
but extra reading."
(this based on the observation that code is much more often read than
written, and should be easier to read than to write.)

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