in reply to Re: Best Multidimensional Hash Practices?
in thread Best Multidimensional Hash Practices?
I have often used deeply nested hashes for extracting and reordering information from logs and such. In these cases, objects tend to be overkill because there is no inherent behavior involved. The class (data container) would just be a bunch of accessors anyway.
This is actually one of the points where Perl really shines. I've done similar code in C++ and Java and the monkey motion needed to deal with classes (or structs) made the problem harder than it should have been.
In other cases, of course, using real objects is incredibly useful. But, objects aren't the cure for every problem.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Best Multidimensional Hash Practices?
by Herkum (Parson) on Oct 15, 2009 at 21:58 UTC | |
by gwadej (Chaplain) on Oct 16, 2009 at 14:32 UTC |