Ming Qian wrote:
> Sorry. This is the complete email.
> 
> Dear All,
> 
> I am a beginner.
> Recently, I receive a project in perl.
> In some *.pm files,
> 
> use Carp;
> .........................
> 
> sub A  {
> .............
> warn "a warn message";
> ..............
> }
> 
> I am sure that sub A was executed.
> But I can not find the warn message in log.
> The project is database website. perl + mason + html.
> 
> Via the httpd.conf, I know the log location.
> So I think there maybe a switch or a debug level ?
> 

When writing a CGI, you should use CGI::Carp

  use CGI::Carp qw( fatalsToBrowser warningsToBrowser );

This will send all die() and warn() messages to the browser.


-- 
Just my 0.00000002 million dollars worth,
  Shawn

Programming is as much about organization and communication
as it is about coding.

I like Perl; it's the only language where you can bless your
thingy.

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to