Ternary is nice, but I'd check the tags this way, in case any is just whitespace:
$title = 'unknown_title' if $title !~ /\S/; $artist = 'unknown_artist' if $artist !~ /\S/; $album = 'unknown_album' if $album !~ /\S/;
In reply to Re^2: Create folder hierarchy based on MP3 tags
by hbm
in thread Create folder hierarchy based on MP3 tags
by thmsdrew
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |