Is there any way to use a constant as a hash key?
For example:
use constant X => 1;
my %x = (X => \'X\');
The above code will cr
Comment @shelfoo (reputation not high enough to add comment directly there yet!)
Totally agree about Perl Best Practices by Damian Conway... its highly recommended reading.
However please read PBP Module Recommendation Commentary which is a useful "errata" if you plan to use PBP for an in-house style guide.