Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^3: Converting hash structure into a special tree

by kschwab (Vicar)
on Jan 13, 2019 at 14:46 UTC ( [id://1228471]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Converting hash structure into a special tree
in thread Converting hash structure into a special tree

The source code for Data::RenderAsTree could show you how to tweak Tree::DAG_Node output into what you want.

Replies are listed 'Best First'.
Re^4: Converting hash structure into a special tree
by ovedpo15 (Pilgrim) on Jan 13, 2019 at 16:58 UTC
    I tried to use that module and the docs are quite good. But it feels like it is not so efficient because I will be using that module and then convert the output to the wanted output. I think that it will be more efficient to create a loop which will reproduce this output, but I'm not so sure. Do you have any other suggestions maybe?
      Hard to say, as I can't really tell what your program is doing from top to bottom. It feels like maybe you're making a Perl equivalent to fuser or lsof. It may be, for example, faster overall to process on the fly versus parsing a bunch of things into a structure first.
        Maybe one of those modules can help:
        Forest::Tree, Archive::Zip::Tree, Tk::TreeGraph, Tk::CanvasDirTree, Tk::TreeGraph, XML::Parser::EasyTree
        Tried to check the DOCS but it looks that they can't help.
      I think that it will be more efficient to create a loop which will reproduce this output, but I'm not so sure. Do you have any other suggestions maybe?

      If you want someone to write code for your task, just say so. This is a Monastery, we pray (Update: every 3 hours).

      bw, bliako

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2024-03-28 17:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found