Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: From MySQL MP3 Database to CD-R

by spaz (Pilgrim)
on Jan 18, 2002 at 06:59 UTC ( [id://139723]=note: print w/replies, xml ) Need Help??


in reply to From MySQL MP3 Database to CD-R

I have one small comment that might make your code more modular, remove:
if ($function =~ /mpg123/) {
If I'm not mistaken you can pass an argument of undef to system() without it freaking out too much.

-- Dave

Replies are listed 'Best First'.
(shockme) Re: Re: From MySQL MP3 Database to CD-R
by shockme (Chaplain) on Jan 18, 2002 at 07:18 UTC
    This is a good point. I hadn't considered passing undef. I did try passing "", which tanked immediately on the mv (complaining that when moving multiple files, the destination must be a directory).

    I'll give undef a go the next time I burn. If it works, I'll modify the code accordingly. I absolutely hate the if statement in the subroutine. It completely ruins the modularity, so here's to hoping you're correct.

    If things get any worse, I'll have to ask you to stop helping me.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://139723]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (3)
As of 2024-04-19 22:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found