Beefy Boxes and Bandwidth Generously Provided by pair Networks Frank
Welcome to the Monastery
 
PerlMonks  

Re^3: xml - empty node

by Anonymous Monk
on Apr 24, 2013 at 14:59 UTC ( #1030430=note: print w/ replies, xml ) Need Help??


in reply to Re^2: xml - empty node
in thread xml - empty node

length() isn't needed here

sure it is, it clarifies intent


Comment on Re^3: xml - empty node
Re^4: xml - empty node
by Lotus1 (Hermit) on Apr 24, 2013 at 15:36 UTC

    Then this is even clearer. :)

    if (length $artist > 0){ print "$artist | "; } else { print "0 | "; }

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (11)
As of 2014-04-18 13:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (468 votes), past polls