tobias_hofer has asked for the wisdom of the Perl Monks concerning the following question:
and it comes it this order to xmlmy $TGROUP = { COLS => 4, COLSPEC => [... Array of hashes...], TBODY => HASH(0x8b...), THEAD => HASH(0x8bc...) }
but the tool requires it in a different order:<TRGROUP... <COLS ... <COLSPEC .. <TBODY .... <THEAD ... >
Therefore it would be simplest to reorder the sequence of keys in the hash.. i.e. like that:<TRGROUP... <COLS ... <COLSPEC .. <THEAD .... <TBODY ... >
Is this somehow possible to do? I tried to create the hash once more in a different order but this does not work.my $TGROUP = { COLS => 4, COLSPEC => [... Array of hashes...], THEAD => HASH(0x8b...), TBODY => HASH(0x8bc...) }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: xml using XML::Simple reording of XML-Content
by hdb (Monsignor) on Jun 17, 2013 at 11:53 UTC | |
|
Re: xml using XML::Simple reording of XML-Content
by Anonymous Monk on Jun 17, 2013 at 11:53 UTC | |
|
Re: xml using XML::Simple reording of XML-Content
by poj (Abbot) on Jun 17, 2013 at 15:27 UTC | |
|
Re: xml using XML::Simple reording of XML-Content
by tobias_hofer (Friar) on Jun 17, 2013 at 13:20 UTC |