Help for this page

Select Code to Download


  1. or download this
               sub catch_zap {
                   my $signame = shift;
    ...
               }
               $SIG{INT} = ’catch_zap’;  # could fail in modules
               $SIG{INT} = \&catch_zap;  # best strategy
    
  2. or download this
    $SIG{'INT'}  = \&sigint_catcher;