I'm surprised merlyn didn't point out the zap example from the original Programming Perl, but it is a little dated. :-)
More recently, there's Proc::Killall (alt.) (included with Proc::ProcessTable (alt.)) which let's you do ...
killall('HUP', 'xterm'); # SIGHUP all xterms killall('KILL', '^netscape$'); # SIGKILL to "netscape"
--k.
In reply to Re: zap in perl
by Kanji
in thread zap in perl
by arc_of_descent
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |