in reply to ^CSIGINT handler "my_handler" not defined. Sigtrap is not able to find handler function.

Is that a typo? You use my_handler and my_hanlder.

use sigtrap 'handler' => \&my_handler, 'normal-signals'; sub my_hanlder { die "Caught signal $! \n"; }
  • Comment on Re: ^CSIGINT handler "my_handler" not defined. Sigtrap is not able to find handler function.
  • Select or Download Code

Replies are listed 'Best First'.
Re^2: ^CSIGINT handler "my_handler" not defined. Sigtrap is not able to find handler function.
by girijaj (Initiate) on Sep 17, 2014 at 06:59 UTC
    Thanks for the response. yes it was typo, i fixed it. I think its a scope of my program. Somehow I have to make this handler function visible to sigtrap. But I am not getting it how to do that.