Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

SkipHuffman's scratchpad

by SkipHuffman (Monk)
on Aug 22, 2005 at 20:15 UTC ( #485761=scratchpad: print w/replies, xml ) Need Help??

Hey Skip! You big Dummy, the next time you use the scratchpad and want to refer to it in the chatterbox, the code is SkipHuffman's scratchpad. Try to notice this before you clear the pad the next time you use it. Of course the odds are that you will just "CTRL-A Del" as soon as you open this page, so I am wasting my time talking to you.
if (-r ".\$songtitle.ogg") { system "/usr/loc +al/bin/mplayer $songtitle.ogg >/dev/null"; } + elsif (-r ".\$songtitle.mp3" ) { + system "/usr/local/bin/mplayer $songtitle.mp3 >/dev/null"; + } else { print "could no +t open audio file, perhaps fileparse failed, or it is not an mp3 or o +gg?<br>Lets try just using the title without adding a suffix.<br>"; + chomp $songtitle; print "/usr/local/bin/ +mplayer $songtitle >/dev/null"; system "/usr/local/bin +/mplayer $songtitle"; system "/usr/local/bin/mplayer + $songtitle.mp3"; } }
Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (7)
As of 2021-06-22 18:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What does the "s" stand for in "perls"? (Whence perls)












    Results (108 votes). Check out past polls.

    Notices?