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

Re^2: Decode Hash Values

by arivu198314 (Sexton)
on Dec 15, 2011 at 10:42 UTC ( #943688=note: print w/replies, xml ) Need Help??


in reply to Re: Decode Hash Values
in thread Decode Hash Values

Is there any way without extra module?

Replies are listed 'Best First'.
Re^3: Decode Hash Values
by GrandFather (Sage) on Dec 15, 2011 at 10:45 UTC

    Of course, but if you wanted to do a bunch of work reinventing wheels why did you come to us for advice?

    Is there some particular reason you think you can't use a module? Maybe you should take a look at Yes, even you can use CPAN?

    True laziness is hard work
Re^3: Decode Hash Values
by ikegami (Pope) on Dec 15, 2011 at 10:45 UTC
    Are you asking for us to copy the module's contents here?
Re^3: Decode Hash Values
by Anonymous Monk on Dec 15, 2011 at 12:40 UTC

    Well, you go recursively through your hash. If ref $node eq "ARRAY" or "HASH" you loop through it (with recursion). This wheel isn't particularly hard to re-invent, for limited data sets.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://943688]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2018-06-24 00:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?



    Results (126 votes). Check out past polls.

    Notices?