Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

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

Replies are listed 'Best First'.
Re^4: xml - empty node
by Lotus1 (Curate) on Apr 24, 2013 at 15:36 UTC

    Then this is even clearer. :)

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

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1030430]
[Corion]: Hurr - use lib glob '/opt/perl/foo*'; - I'm not really sure if that is sane ;-D
[choroba]: Yeah, let's ban dot in INC, but add glob to it!
[Corion]: choroba: Well, at least the above is user-defined, not implicitly by Perl ;)
LanX globalization is evil! Lets Perlxit!

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (9)
As of 2017-01-19 15:35 GMT
Find Nodes?
    Voting Booth?
    Do you watch meteor showers?

    Results (170 votes). Check out past polls.