Scarborough has asked for the wisdom of the Perl Monks concerning the following question:
My simple solution is to put an extra field containing a number in the XML. But this would mean re-numbering all the jobs should, as often happens, an extra job is inserted or one removed in the middle of the list, I'm sure you would agree wide open to error.
So can anyone give me some ideas on this one?This gave me an array of hashes and of course an array comes out in the same order every time. Probably not as good as a SAX filter but this worked for me.<groupname> <job> <jobname>foo<jobname> <runs>MONSATXBH</runs> </job> <job> <jobname>bar</jobname> <runs>ME</runs> </job> </groupname>
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Retrieving from a hash in Insertion Order
by borisz (Canon) on Jun 23, 2004 at 09:44 UTC | |
by Scarborough (Hermit) on Jun 23, 2004 at 10:12 UTC | |
by borisz (Canon) on Jun 23, 2004 at 10:43 UTC | |
Re: Retrieving from a hash in Insertion Order
by Hena (Friar) on Jun 23, 2004 at 09:43 UTC | |
by Scarborough (Hermit) on Jun 23, 2004 at 10:10 UTC | |
Re: Retrieving from a hash in Insertion Order
by delirium (Chaplain) on Jun 23, 2004 at 11:32 UTC | |
by Scarborough (Hermit) on Jun 23, 2004 at 12:27 UTC |