Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Python dict to perl hash

by dave_the_m (Monsignor)
on Mar 30, 2015 at 14:05 UTC ( [id://1121838]=note: print w/replies, xml ) Need Help??


in reply to Python dict to perl hash

If you're just looking for a way to create, in a Perlish way, a hash that does rot13 character mappings, then try something like this:
my %rot13; @rot13{'a'..'z'} = ('n'..'z','a'..'m');

Dave.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1121838]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (2)
As of 2024-04-24 04:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found