Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Answer: How do I modify the KEYS in a hash (copy)

by jdporter (Canon)
on Feb 06, 2008 at 15:15 UTC ( #666577=categorized answer: print w/replies, xml ) Need Help??

Q&A > hashes > How do I modify the KEYS in a hash (copy) - Answer contributed by jdporter

my %Copy; @Copy{ map { tr/ /_/; $_ } keys %Orig } = values %Orig;

Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2017-08-19 15:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Who is your favorite scientist and why?



























    Results (311 votes). Check out past polls.

    Notices?