in reply to AppConfig Error handling
And, as FunkyMonk points out, you would tell AppConfig to use this handler with:sub handle_errors { # prefix error message with current time my $message = sprintf(@_); my $time = localtime(time); warn "$time: $message\n"; }
Update: Thanks to FunkyMonk for pointing out the initial typo I had with the the subroutine's name.my $conf = AppConfig->new({ ..., ERROR => \&handle_errors, ...});
|
|---|