in reply to Map multiple xml tags to array
Howdy, dear anonymous monk,
Can't call method "convert" on an undefined value at 1097409.pl line 1 +0.
could you be so kind and actually post working code that shows the problem you're having? The monks are more than happy to help you, but we'd rather not fix up unrelated issues with your code first.
In the same vein, the XML snippet you posted is not well-formed (the last line should be </Players> instead).
That said, here's some tips for solving your problem: Be sure to read the documentation for XML::Simple and familiarize yourself with the kind of data structures it returns. Use Data::Dumper or a similar module to get an idea of what the data you're getting for YOUR file looks like. And finally, keys is your friend when iterating over hashes.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Map multiple xml tags to array
by Anonymous Monk on Aug 14, 2014 at 13:09 UTC | |
by soonix (Chancellor) on Aug 14, 2014 at 13:47 UTC | |
by GotToBTru (Prior) on Aug 14, 2014 at 13:31 UTC |