On Sun, 18 Aug 2002 06:08:38 +0800, [EMAIL PROTECTED] (Connie Chan)
wrote:

>$main::SIG{__DIE__} = \&Die4CGI::die;
>

>*BUT!! I still not understand, how can this overided
>the orgional "die" ? Why shouldn't I write as :
>open FH, $file or Die4CGI::die($!) ;

Because your module says above that the MAIN SIG_DIE
is equal to your subroutine Die4CGI::die.

>Would anybody tell me more ? 

http://users.actcom.co.il/~choo/lupg/tutorials/signals/signals-programming.html

It's written for c, but the idea is exactly the same.




-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to