in reply to Sort xml nodes by schema
fyi: something crosses my mind this morning
you can output a hash in the same order as you inserted elements into it
>any1 is first
>some1 is second
>big1 is third
maybe XML::Simple adopt that.. dnt knw..
kindly perlig
you can output a hash in the same order as you inserted elements into it
output should be:use Tie::IxHash; tie %hash, "Tie::IxHash"; $hash{any1}="first"; $hash{some1}="second"; $hash{big1}="third"; foreach $foo (keys %hash) { print " $foo\n"; } while (( $foo, $bar ) = each %hash ) { print "$foo is $bar"; }
>any1 is first
>some1 is second
>big1 is third
maybe XML::Simple adopt that.. dnt knw..
kindly perlig
$perlig =~ s/pec/cep/g if 'errors expected';
|
---|
In Section
Seekers of Perl Wisdom