Changing the code in that way also doesn't work.
my $pid = fork || exec 'play', '/home/myname/soundfile.wav'; sleep 5; kill $pid;
In reply to Re^2: Killing a child process
by Anonymous Monk
in thread Killing a child process
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |