$SIG{INT} = sub { <code goes here> };
See perldoc perlipc.
In reply to Re: Signal Handling by lidden in thread Signal Handling by anshumangoyal