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

Re: [perl #118701] __PACKAGE__ does not work as a hash key

Thread Previous | Thread Next
From:
Eric Brine
Date:
July 3, 2013 11:09
Subject:
Re: [perl #118701] __PACKAGE__ does not work as a hash key
Message ID:
CALJW-qEVoLnTheJTgcVa_uVRDUwdTUZLWNZ1Kt8VMdoh=BPvDg@mail.gmail.com
On Tue, Jul 2, 2013 at 9:09 PM, Jim Avera <james_avera@yahoo.com> wrote:

> The special __(PACKAGE|FILE|LINE)__ symbols are well-documented and
> vanishingly unlikely to be innocently used as an application symbol.  So
> it's hard to see how special-casing them to always be treated as string
> literals with the implied values (and never auto-quote themselves) would
> make things worse.


You could say exactly the same for `split`, `uc`, etc

And that's why it would make things worse.

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