P is for Practical | |
PerlMonks |
Re: Spooky actions from a signal handler possible?by RonW (Parson) |
on Feb 24, 2015 at 20:19 UTC ( [id://1117716]=note: print w/replies, xml ) | Need Help?? |
Interrupt handlers in Perl are able to modify package variables, so your handler could change a flag. If a designated package variable contains an object reference, then your handler could change the value of a field in that object. For your situation, may need to use the :perlio layer with the file handles associated with the pipes. See Perl IPC Signals, including the discussion of Deferred Signals and Interrupting IO
In Section
Seekers of Perl Wisdom
|
|