Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

RE: (jcwren) RE: varying length multi-dimensional hashes

by merlyn (Sage)
on Oct 04, 2000 at 23:25 UTC ( #35316=note: print w/ replies, xml ) Need Help??


in reply to (jcwren) RE: varying length multi-dimensional hashes
in thread varying length multi-dimensional hashes

I voted this one down because

  • it's an unnecessary use of runtime-string-compilation eval
  • it breaks on general data, so it's not a good general pattern, and you didn't add that disclaimer to your text. Hint: what if your data contained single quotes?
Others have posted faster and more general solutions, so I won't include one of mine here. But avoid this eval solution, please.

-- Randal L. Schwartz, Perl hacker


Comment on RE: (jcwren) RE: varying length multi-dimensional hashes

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (8)
As of 2014-12-22 00:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (109 votes), past polls