Re: logging $! with $r->log_error

Torsten Förtsch <[email protected]>
Newsgroups gmane.comp.apache.mod-perl
Message-ID <[email protected]>
On Friday, December 10, 2010 17:59:23 Mark Copper wrote:
>    unless(open MAIL, "| /usr/sbin/sendmail -t -i -F'...' -f'...''"){
>    $main::r->log_error("Couldn't open mail: $!");
>    return DECLINED;
>    }
> 
> namely this error:
>    [Thu Dec 09 16:32:44 2010] [error] [client ...] Can't call method
> "log_error" on an undefined value at ...

$main::r is not defined here. That is what the message says. Nothing to do 
with $!.

Torsten Förtsch

-- 
Need professional modperl support? Hire me! (http://foertsch.name)

Like fantasy? http://kabatinte.net
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.