Help for this page

Select Code to Download


  1. or download this
    sub handle_errors {
      # prefix error message with current time
    ...
      my $time = localtime(time);
      warn "$time: $message\n";
    }
    
  2. or download this
    my $conf = AppConfig->new({ ..., ERROR => \&handle_errors, ...});