Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: mapping two arrays into a hash

by tachyon (Chancellor)
on Feb 26, 2003 at 21:10 UTC ( [id://238916]=note: print w/replies, xml ) Need Help??


in reply to mapping two arrays into a hash

A slice is the go but TIMTOWDI

# slice @hash{@ary1} = @ary2; # map %hash = map { $ary1[$_], $ary2[$_] } 0..$#ary1;

cheers

tachyon

s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (5)
As of 2024-04-19 21:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found