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
Eric Brine
July 3, 2013 11:09
Re: [perl #118701] __PACKAGE__ does not work as a hash key
Message ID:
On Tue, Jul 2, 2013 at 9:09 PM, Jim Avera <> 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 Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About