As far as outputting an image, first port of call should be the excellent GD.pm. You can get to it and other graphics libraries for Perl from here: http://theoryx5.uwinnipeg.ca/mod_per...cat&catinfo=18
You'll need to use the stuff that BSD linked to to read in the WAV file (unless you have another way of doing it).