develooper Front page | perl.qpsmtpd | Postings from July 2005

Re: sender_permitted_from can't call method add on undef

Thread Previous | Thread Next
From:
Bob Dodds
Date:
July 17, 2005 19:26
Subject:
Re: sender_permitted_from can't call method add on undef
Message ID:
1121653649P23632M452136R88Q2@xqme.com
Bob Dodds wrote:
> line 118 in sender_permitted_from, it needs something
> like this to prevent the "@" from causing an error on line
> 119--may as well put it at line 97, too.
>
> $comment = ( /\x40/ ? ( s/\x40/'\x40'/ and y/'/'/s and $_ ) : $_ )
> for $comment ;
>> Bob Dodds wrote:
>>> sender_permitted_from has a fatal error at line 119.......
>> it logs $result and $comment, showing
>> both ARE defined, but we discover in the output that
>> perennial bugaboo, the "@", in the comment string.
>>
>> The error is saying we have an undefined ARRAY in
>> the comment string, and we "can't call method add
>> on an undefined" array, now can we?
That doesn't help, so it must be the use of '=>' instead
of a comma in $transaction->header->add(). perldoc
Mail::Header says to use commas there.

-Bob


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About