Help for this page

Select Code to Download


  1. or download this
    try {
      die ("Hello world");
    } catch(e) { 
      print("Exception: " $e);
    }
    
  2. or download this
    sub try(&$) {
      my ($try, $catch) = @_;
    ...
      }
    }
    sub catch(&){  $_[0]; }