Help for this page

Select Code to Download


  1. or download this
    my $num_ctrlc = 0;
    $SIG{'INT'} = sub {
    ...
    };
    
    # rest of program
    
  2. or download this
    while ($a = <STDIN>) {
        print $a;
    }