Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

Re: Parse data representing hash

by choroba (Canon)
on Jun 28, 2014 at 22:05 UTC ( #1091573=note: print w/ replies, xml ) Need Help??

in reply to Parse data representing hash

Instead of recursion, you can reach to Data::Diver and its DiveRef:

لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Comment on Re: Parse data representing hash
Select or Download Code
Re^2: Parse data representing hash
by peterp (Sexton) on Jun 28, 2014 at 22:28 UTC


    Thank you very much for your suggestion, i'm unable to test right now since i'm on holiday using an online compiler, but it looks exactly what I needed.

    My data is actually slightly more complicated than the example I provided, since each row has additional information, therefore was planning on eventually using the following design $hash->{one}->{children}->{two}..., $hash->{one}->{data}->{url} = '' etc to parse the row "one|url=>", and I will read the documentation carefully to see if this is possible.

    Thanks again

Re^2: Parse data representing hash
by Anonymous Monk on Jun 28, 2014 at 22:30 UTC
    To maintain hash of hash of .... in case the data has lines of numbers ...  DiveRef($hash, \(@path)  );

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (11)
As of 2015-03-28 15:01 GMT
Find Nodes?
    Voting Booth?

    When putting a smiley right before a closing parenthesis, do you:

    Results (625 votes), past polls