in reply to How does one trap a Broken Pipe (Moved from Q&A)
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)
|
|---|