Help for this page

Select Code to Download


  1. or download this
    sub try (&@) {
      my($code, $error_handler) = @_;
    ...
    sub catch (&) {
      return @_;
    }
    
  2. or download this
    my $msg;
    try {
    ...
      print "File could not be opened because of: $@\n";
      $msg = "BAAAAH";
    }