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

Then this is even clearer. :)

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