Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Hash create

by Thilosophy (Curate)
on Jul 04, 2005 at 12:41 UTC ( #472215=note: print w/replies, xml ) Need Help??


in reply to Hash create

One line and a half:
my %h; @h{@keys} = @values;

Replies are listed 'Best First'.
Re^2: Hash create
by ysth (Canon) on Jul 04, 2005 at 22:30 UTC
    @$_{@keys} = @values for \my %h; :)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://472215]
help
Chatterbox?
[Lady_Aleena]: By the way, I'm bored out of my skull at the moment. And it just had to be Friday didn't it?

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (6)
As of 2017-01-21 02:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (180 votes). Check out past polls.