Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^3: Converting hash structure into a special tree

by kschwab (Vicar)
on Jan 13, 2019 at 14:46 UTC ( #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.
  • Comment on Re^3: Converting hash structure into a special tree

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? | Other CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2022-01-25 15:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (66 votes). Check out past polls.

    Notices?