in reply to When I am using Ctrl-C and coming out of Perl Program

I think you're looking for %SIG, specifically $SIG{INT}. Here's a PM node about it, and an old (but as far as I see, still accurate) FAQ with a quick example.
  • Comment on Re: When I am using Ctrl-C and coming out of Perl Program