Help for this page

Select Code to Download


  1. or download this
      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";
                    }
                    }