note
hbm
<p>Ternary is nice, but I'd check the tags this way, in case any is just whitespace:
<c>
$title = 'unknown_title' if $title !~ /\S/;
$artist = 'unknown_artist' if $artist !~ /\S/;
$album = 'unknown_album' if $album !~ /\S/;
</c>
985820
986295