Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^2: Building an arbitrary-depth, multi-level hash

by ikegami (Patriarch)
on Feb 28, 2009 at 22:15 UTC ( #747217=note: print w/replies, xml ) Need Help??


in reply to Re: Building an arbitrary-depth, multi-level hash
in thread Building an arbitrary-depth, multi-level hash

Just use Data::Diver
  • Comment on Re^2: Building an arbitrary-depth, multi-level hash

Replies are listed 'Best First'.
Re^3: Building an arbitrary-depth, multi-level hash
by samtregar (Abbot) on Feb 28, 2009 at 22:19 UTC
    Wow, no. This is basic Perl and shouldn't require a module! I love modules, probably much more than the next guy, but there's a point at which it becomes silly. What's next Scalar::Increment? Loop::For?

    UPDATE: Just looked at the code for Data::Diver. Double wow!

    -sam

      Basic?

      It's a FAQ.
      People continually get it wrong.
      People have no idea how it works when given that solution.
      It's missing half the code.
      It's 6 lines instead of one. (7 for the fetcher if you don't validate.)

      I have no problem writing such code, but I'm not most people. Put it into an appropriately named function and I'll be able to read it too. Or you know, use the function that's already written.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (2)
As of 2022-06-27 05:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My most frequent journeys are powered by:









    Results (86 votes). Check out past polls.

    Notices?