in reply to How to escape # sign in key name

The problem is that the octothorpe # is parsed as the start of a comment. Quoting the key fixes this:
my %hash = ( partname => "large widget", 'cata#ofitem' => "4321" );

-Mark