Perl 播放 wav 文件

#!/usr/bin/perl -w

use strict;
use Win32::Sound;

Win32::Sound::Volume(65535);

while (<*.wav>) {
    Win32::Sound::Play($_);
}

编程技巧