The Open Source Swiss Army Knife

/code/perl/unix_perl/
/code/perl/unix_perl/ + sub-categories
http://www.sirfsup.com/
web directory content
    
      

Not logged in
Chat Register Login
return to:  http:/www.sirfsup.com      /code   /perl   /unix_perl 
Permalink: sig_handler.txt
Title: add
article options : please login   |  raw source view  

#!/usr/bin/perl
$SIG{INT}=\&sig_handler;
sub sig_handler {

        my $signal = shift;
        die "I got signal $signal";

}

while (<>) {

print;
}


Leave a Reply
Your Name:     anonymous
Your Email:
Website:  
Comments:

The author will be notified of your reply.
return to top