in reply to win32, ctrl-c, sleep, and signals
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); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: win32, ctrl-c, sleep, and signals
by displeaser (Hermit) on May 30, 2006 at 15:36 UTC | |
by jesuashok (Curate) on May 30, 2006 at 15:42 UTC | |
by SirBones (Friar) on May 30, 2006 at 16:45 UTC |