Both ysth and rev_1318 make excellent points. But, be careful with SIG handlers. 'kill -9' should be an ultimately last resort if nothing else works, not just a way to kill a script. If you read the perldoc on signals and the POSIX module POD, you should get a much better idea of what (and what not) to do.
Because I have read those, and know a bit about signals, I will mention one thing further; try to avoid setting $SIG{KILL} unless you're positive you know what you're doing. If your KILL handler doesn't work properly, you may find yourself up a very smelly stream without an appropriate nautical navigation tool. ;-)
radiantmatrix
require General::Disclaimer;
s//2fde04abe76c036c9074586c1/; while(m/(.)/g){print substr(' ,JPacehklnorstu',hex($1),1)}
In reply to Re: killing perl scripts
by radiantmatrix
in thread killing perl scripts
by rsiedl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |