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, $/ } }
In reply to Win32 Interrupts by Adam
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |