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".


Comment on Re: looking for a perl way to build a hash
Download Code

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 chanting in the Monastery: (5)
As of 2015-07-05 14:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (67 votes), past polls