Help for this page

Select Code to Download


  1. or download this
    $SIG{INT} = 'IGNORE';
    
  2. or download this
    $SIG{INT} = \&interrupt;
    
    ...
        print STDERR "Caught a control c!\n";
        exit;  # or just about anything else you'd want to do
    }