Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

Re^5: Two questions about hashes

by ig (Vicar)
on Jun 02, 2011 at 05:47 UTC ( #907751=note: print w/replies, xml ) Need Help??

in reply to Re^4: Two questions about hashes
in thread Two questions about hashes

Duplicating the data/info is generally not a good thing to do, though sometimes it is convenient.

You have configuration and log files. You have no choice about how these are organized - they are as the respective software requires or produces them.

You are trying to produce some results, which you haven't described but which are likely to be very relevant to answering your questions about how best to organize your data.

Are you storing the data somewhere (i.e. after analyzing the configuration and log files and producing summaries, stats and graphs, are these stored in a database of some sort? Or are you producing them "on-the-fly" each time you want them?

Once you have your data structures, how are you using them?

How is having the nested structure a benefit to what you are doing?

Replies are listed 'Best First'.
Re^6: Two questions about hashes
by i5513 (Pilgrim) on Jun 02, 2011 at 08:52 UTC
    I'm saving configuration data in csv, and after I process it to generate useful output and diagrams (with blockdiag |python, I don't know if there is something similar inside perl world|)
    I want to sumarize the logs files, I will take a look to logstatd 1. I would like to draw rrdtool graphics with info about how many logs (and of which class) are thought the time. Generally I run this script on the fly to generate stats and (in the future) graphics.
    Without nested structured I could not get config/logs info (ehi! I could create classes and objects and play with oo, but I prefer to do it with perl structures)
    Thank you for your valuable tips!
    PD: Is there any tip behind "pre / pre " to not use html style in perlmonks comments ?

      I've just find an blockdiag alternative in Perl!!


      I like more blockdiag syntax, but maybe I test that module, it is a nice idea!

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2018-06-23 14:49 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (125 votes). Check out past polls.