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 (Vicar) on Apr 24, 2013 at 15:36 UTC

    Then this is even clearer. :)

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