Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Assign (key, value) to a hash w/o clobbering hash

by TedPride (Priest)
on Sep 28, 2006 at 18:51 UTC ( #575399=note: print w/ replies, xml ) Need Help??


in reply to Assign (key, value) to a hash w/o clobbering hash

use Data::Dumper; $hash{bing} = 'bang'; for (qw/fooXbar bishXbash/) { @_ = split /X/, $_; $hash{$_[0]} = $_[1]; } print Dumper(\%hash);


Comment on Re: Assign (key, value) to a hash w/o clobbering hash
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2014-08-02 07:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Who would be the most fun to work for?















    Results (55 votes), past polls