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

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?
  • Comment on Re^4: Converting hash structure into a special tree

Replies are listed 'Best First'.
Re^5: Converting hash structure into a special tree
by kschwab (Vicar) on Jan 13, 2019 at 17:19 UTC
    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.
Re^5: Converting hash structure into a special tree
by bliako (Abbot) on Jan 13, 2019 at 20:20 UTC
    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