Adam has asked for the wisdom of the Perl Monks concerning the following question:
But I'm running this hack on a Win32 box, so ctrl-c failed to trigger my sigtrap. I eventually gave up trying to do it smart and instead just have the thing printing $counter out to STDOUT. It works, but I kind of wish I could have done it right. Does anyone know how to do a good trap like that on a Win32 machine?BEGIN{ $SIG{INT}=sub{ print $counter, $/ } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Win32 Interrupts
by tye (Sage) on Sep 20, 2000 at 08:12 UTC | |
by tilly (Archbishop) on Sep 20, 2000 at 15:34 UTC | |
|
(Ovid) Re: Win32 Interrupts
by Ovid (Cardinal) on Sep 20, 2000 at 06:00 UTC | |
|
(jcwren) RE: Win32 Interrupts
by jcwren (Prior) on Sep 20, 2000 at 06:41 UTC | |
|
Re: Win32 Interrupts
by extremely (Priest) on Sep 20, 2000 at 05:38 UTC |