Help for this page
$SIG{INT} = sub { # handle the interrupt }
my $count = 0; $SIG{INT} = sub { print "\nCaught an interrupt\n"; ... $|++; while (1) {print '.'; sleep 1}