Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2016-12-08 17:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (144 votes). Check out past polls.