Har har. First, you misunderstand my sentence. Second, it's done more often than you might think. I have a friend at RiskGrades who asked for some help setting up a hash in this way. She gets a list of keys, and needs to build up a hash (of hashes)+ based on those keys.
_____________________________________________________
Jeff[japhy]Pinyan:
Perl,
regex,
and perl
hacker, who'd like a job (NYC-area)
s++=END;++y(;-P)}y js++=;shajsj<++y(p-q)}?print:??; | [reply] |
I use nested structures all the time. I just can't see too many applications of taking a random list and creating a HoHoH..etc out of it.
++ for the best solution.
I still wonder if this is the question the poster was asking or didn't know how to write a hash slice. :)
-Lee
"To be civilized is to deny one's nature."
| [reply] |