×
Home About Us Products Services News Free Scripts Contact
news php scripts and software

Perl example - How to write a simple exception handler function in Perl


Perl - How to write a simple exception handler function in Perl

$SIG{__DIE__} = sub 
{ 
 print "Exception: ".$_[0]."n";
 print "My Exception Handlernnn"; 
};
 
die("REASON");

Category: Perl

 
<< Go back