As the subject suggests. When I am using Ctrl-C and coming out of Perl Program, I want to run a subroutine (which will put some message in log file or do some action).
I know it is possible, I would be glad if someone guides me to right solution/link/document to read/example.