in reply to Re: Create folder hierarchy based on MP3 tags
in thread Create folder hierarchy based on MP3 tags
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/;
|
|---|