$SIG{INT} = sub { # handle the interrupt }