Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

Re^2: Create folder hierarchy based on MP3 tags

by hbm (Hermit)
on Aug 08, 2012 at 15:22 UTC ( #986309=note: print w/replies, xml ) Need Help??

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/;

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://986309]
[choroba]: bare SQL seems to work differently. Failing a prepared statement doesn't abort the transaction. So it's a behaviour of the DBD driver
[choroba]: and smells like a bug
[choroba]: oh wait
[choroba]: it doesn't abort, but it blocks any other operations than aborting
[choroba]: so it kind of makes sense

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (8)
As of 2017-09-19 14:08 GMT
Find Nodes?
    Voting Booth?
    During the recent solar eclipse, I:

    Results (222 votes). Check out past polls.