Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Array to hash refs

by Abigail-II (Bishop)
on Aug 13, 2002 at 16:28 UTC ( #189860=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Array to hash refs
in thread Array to hash refs

return {map {$_ => 1} qw /a b c/}
Or did I understand your questing wrong?

Abigail

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (3)
As of 2023-02-04 12:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I prefer not to run the latest version of Perl because:







    Results (31 votes). Check out past polls.

    Notices?