in reply to XML::Simple Hashes of Ref's of Hashs of Ref's...
As you can see the data was not retrieved, and the tree now has a new empty entry. Why can't I get the description and why is the tree being modified?Because your pseudocode modified you tree. Compare to this
See how that happens? Maybe you wanna Clone your tree or just the part that's being modified before handing it to that pseudocode.sub funky { #pseudocode } my $var = [ 1, 2, [ 3, 4] ]; use Data::Dumper; warn Dumper($var); funky($var); warn Dumper($var); __END__ $VAR1 = [ 1, 2, [ 3, 4 ] ]; $VAR1 = [ 1, 2, [ ] ];
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: XML::Simple Hashes of Ref's of Hashs of Ref's...
by ralibm (Acolyte) on Mar 19, 2004 at 22:57 UTC | |
by PodMaster (Abbot) on Mar 19, 2004 at 23:20 UTC |