perlquestion
redss
What is the best way to kill a system command spawned from my program? For example:
<code>
system "arecord file.wav";
# at some point in program user wants to end recording
system "killall arecord";
</code>
Is there a better preferred way to do that in perl?