Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^2: How to get paired values from the nested XML structure?

by choroba (Abbot)
on Nov 01, 2011 at 22:00 UTC ( #935235=note: print w/ replies, xml ) Need Help??


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?
Re^3: How to get paired values from the nested XML structure?
by vagabonding electron (Hermit) 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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://935235]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (14)
As of 2014-07-30 08:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (229 votes), past polls