gl2103 has asked for the wisdom of the Perl Monks concerning the following question:

Hi,
I'm trying to use
use CGI::Carp qw(fatalsToBrowser);
it works fine,but here is a question:
How can I change an "webmaster email" which displays by
default on web page as "you@your.address" ?
Thanks in advance

Replies are listed 'Best First'.
Re: Need help with CGI::Carp
by ikegami (Patriarch) on May 11, 2005 at 18:47 UTC

    It's taken from $ENV{SERVER_ADMIN} which is provided by your web server. In Apache, the ServerAdmin directive is used to set this.

    If you don't have access to your web server's configuration files, or if your web server doesn't provide this environment variable, add
    BEGIN { $ENV{SERVER_ADMIN} = 'webmaster@domain.com'; }
    before
    use CGI::Carp qw(fatalsToBrowser);.

      Thank you very much. It works now
Re: Need help with CGI::Carp
by Fletch (Bishop) on May 11, 2005 at 18:49 UTC

    Those come from the CGI environment (SERVER_ADMIN specifically), so you'd need to poke your webserver's configuration (or your sysadmin and have them do it). See also the set_message routine which lets you specify your own custom message to be returned.