JupiterHost.Net wrote:
If the script is called via the command line I'd rather not output
HTML

Why would you want to use CGI::Carp at all if you call a program from the command line? This is a solution I have applied:

    BEGIN {
        if ($ENV{GATEWAY_INTERFACE}) {
            require CGI::Carp;
            import CGI::Carp 'fatalsToBrowser';
        }
    }

Isn't it rather the Carp module you should use otherwise, if anything?

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to