in reply to Re^2: Python dict to perl hash
in thread Python dict to perl hash

But I copied that dict from somewhere ...

It's still unclear to me whether you're talking about only this one dict? Or whether you have a bunch of different dicts that you need to translate to Perl?

The code you showed produces an output: a hash(ref) in Perl's own syntax. Copy that output back into your Perl script, replacing your current hash definition, and you'll have a hash defined in pure Perl.

sub rot13 { my %hash = ( a=>"n", b=>"o", c=>"p", ... ); ... }