in reply to play mp3

With the system function you can call any other program from your perl script, for example mpg123 or mplayer (if you are on linux)