in reply to Re: How to get paired values from the nested XML structure?
in thread How to get paired values from the nested XML structure?

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.
  • Comment on Re^2: How to get paired values from the nested XML structure?

Replies are listed 'Best First'.
Re^3: How to get paired values from the nested XML structure?
by vagabonding electron (Curate) on Nov 02, 2011 at 08:08 UTC
    Thank you choroba it works this way! Again I've learned on PM!
    ... now trying this "in real life" with the complete file.
    Thanks again.
    VE