Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Array to hash refs

by deMize (Monk)
on Oct 11, 2012 at 14:47 UTC ( #998461=note: print w/replies, xml ) Need Help??


in reply to Array to hash refs

I got here from Google and this is old but: $h={@arr};
And if you prefer 1 to undef then:
push @arr,1 if @arr % 2; $h={@arr};
Nevermind: I misread the question, which was asking for a tree -- moderator, please delete this answer.


Demize

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://998461]
help
Chatterbox?
[marinersk]: Poking around I find references to the XP Nodelet but something's not clicking. It shows up when I have votes; it shows up when my XP changes; but I can't see how to make it show up all the time. Am I missing something obvious here?

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (7)
As of 2017-05-29 13:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?