Help for this page

Select Code to Download


  1. or download this
    my $ref;
    eval {
    ...
         || "Something bad happened, but I don't know what!";
      print STDERR "Invalid content in file: $@";
    }
    
  2. or download this
    sub processContent {
      # do initial processing ...
    ...
      # with eval {...} or do {...} as needed ....
      return 1; #SUCCESS!
    }