pileofrogs has asked for the wisdom of the Perl Monks concerning the following question:
my $feeling = 'happy'; $SIG{INT} = \&handler; sub handler { warn "I feel ".$feeling."\n"; exit; } # do some stuff $feeling = 'sleepy'; # do some other stuff $feeling = 'grumpy';
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: getting data to a signal handler
by Zaxo (Archbishop) on Nov 19, 2005 at 01:23 UTC | |
by pileofrogs (Priest) on Nov 19, 2005 at 02:52 UTC | |
by Zaxo (Archbishop) on Nov 19, 2005 at 03:13 UTC | |
by jonadab (Parson) on Nov 19, 2005 at 12:32 UTC |