|
|
| Perl: the Markov chain saw | |
| PerlMonks |
Re^2: How to get paired values from the nested XML structure?by choroba (Prior) |
| on Nov 01, 2011 at 22:00 UTC ( #935235=note: print w/ replies, xml ) | Need Help?? |
|
You can use Data::Dumper to see what your variables contain. For articles without quantity, $amount is the empty string q(), which means it is defined. If you replace // with ||, you will get the desired behaviour.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||