$SIG{INT} = sub { # code executed on 'INT' signal here }; # <-- that semicolon isn't optional