stuie has asked for the wisdom of the Perl Monks concerning the following question:
Hi, my mastery of Perl is much like Tarzan's mastery of English, so please bear with me if I seem a bit ignorant.
I'm using the rss2html.pl script available with the XML::RSS module to print out RSS news items out of our site into HTML. The problem is that we want to be able to sort by category and by date. The issue is that the data is stored in a bunch of multi-dimensional hashes, and I'm trying to work out the best strategy to output the information.
The cast of characters includes:
The best strategy I've figured out is to push each item's hash values into an array, push this array into a parent array, and then sort the parent array by the nzgls:identifier info. However, when I try doing this I get errors about turning hashes into arrays. I get the feeling I'm trying to do something that Perl isn't designed to do.
Any ideas? Thanks for reading this far!
Cheers
Stuart
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Sorting RSS items out of XML::RSS
by Fletch (Bishop) on Aug 17, 2004 at 02:24 UTC | |
by stuie (Initiate) on Aug 17, 2004 at 05:34 UTC | |
by johnnywang (Priest) on Aug 17, 2004 at 06:00 UTC | |
|
Re: Sorting RSS items out of XML::RSS
by Zaxo (Archbishop) on Aug 17, 2004 at 05:53 UTC |