Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: looking for a perl way to build a hash

by brx (Pilgrim)
on Jul 29, 2013 at 17:50 UTC ( #1046896=note: print w/replies, xml ) Need Help??


in reply to looking for a perl way to build a hash

Dirty golfer
my $str1="a,b,c"; my $str2="1,2,3"; @h{eval$str1}=eval$str2
Don't do that, see other replies!
English is not my mother tongue.
Les tongues de ma mère sont "made in France".

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (3)
As of 2016-10-01 03:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (574 votes). Check out past polls.