I tried the above code in windows it works for me.#!/usr/bin/perl use strict; use warnings; $SIG{INT} = 'handleit'; while (1) { print "still here...\n"; sleep 30; } sub handleit { print "I caught it."; exit(1); }
In reply to Re: win32, ctrl-c, sleep, and signals
by jesuashok
in thread win32, ctrl-c, sleep, and signals
by SirBones
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |