I owe credit to mdillon for this one via chatterbox, or was it tye . . .$SIG{PIPE} = sub { $error = "Lost connection - broken pipe." }; # your eval wrapped code here (YMMV) return $error if ($error);
Jeff
L-LL-L--L-LL-L--L-LL-L--
-R--R-RR-R--R-RR-R--R-RR
F--F--F--F--F--F--F--F--
(the triplet paradiddle)
In reply to (jeffa) Re: How does one trap a Broken Pipe (Moved from Q&A)
by jeffa
in thread How does one trap a Broken Pipe (Moved from Q&A)
by Russ
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |