## June 5, 2015

### Playing WAV Files In PERL

Filed under: Perl,Programming — Brandon @ 3:42 pm
Tags: , , , , ,

I don’t remember why exactly, but a few years ago I wrote a countdown timer that would sound a chime when it reached zero. I decided to keep the code that plays the sound for future reference. Note, this works using ActiveState PERL on Windows.

 use Win32::Sound;

 $wav = 'C:\path\to\file.wav';  Win32::Sound::Play($wav);