Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Doug O'Leary
February 25, 2005, 9:40 am
rate this thread
Several months ago, I posted a question about how to document
complex datastructures. Uri Guttman replied suggesting a
change in coding style and the use of Data::Dumper.
I am now working on a script to maintain a nagios monitoring
environment which is resulting in a data structure that makes
the one I posted the question about look basic by comparison.
I tried the C style dereferencing and have found it to be
incredibly easy to write, read, maintain, and ponder. The
$nagios->->->[$x]-> = $2
would be ... a nightmare under the other style.
I also tried the Data::Dumper and found it incredibly useful
It's not too often that I take all the suggestions that I'm
offered but I did this time. Thanks for taking the time and
effort to respond.