use Win32::Sound; Win32::Sound::Play('SystemDefault',SND_ASYNC); #### system('paplay /usr/share/sounds/gnome/default/alert/sonar.ogg'); #### use File::Which; my $paplay_path = which 'paplay'; #### my $pid = fork; if ( !$pid ) { # in the child process system $paplay_path, '/usr/share/sounds/gnome/default/alert/sonar.ogg'; } # parent proc continues here