good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
UPDATE::
I got a lot of good advice after posting this thread - thanks to all.
I tried using
$SIG{PIPE} = sub { ... }; but found that it wasn't working all the time. It turns out that by hitting the stop button on the browser, a SIGTERM was ending the script in stead. I took this anonymous suggestion to use the sigtrap module, and that's working flawlessly now. Thanks! sigtrap In reply to Re^2: cleanup a cancelled CGI script
by goofball
|
|