bowei_99 has asked for the wisdom of the Perl Monks concerning the following question:
For example, one thing that I have now that would be nice to generalize is to give a function a reference to a hash of keywords or other parameters, say name=Bob and food=apple, and get location of the hash elements as well as associated hash elements that meet that criteria. Data::Dumper shows the actual results, but doesn't allow this kind of search functionality, and I'd also like to be able to format the output (XML, csv, etc.).
Also, I know that having arrays is more efficient, but I need to be able to look up by the key. I know of various XML and CSV modules, but haven't found any for complex hashes. Anybody know of any such module?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Module for manipulating complex hashes?
by Aristotle (Chancellor) on Mar 03, 2006 at 16:15 UTC | |
by bowei_99 (Friar) on Mar 03, 2006 at 20:50 UTC |