Re: [exim] defined and Exim::expand_string ('$variable')

Top Page
Delete this message
Reply to this message
Author: Todd Lyons
Date:  
To: deisler
CC: exim-users
Subject: Re: [exim] defined and Exim::expand_string ('$variable')
If you change it to:

if (expand_string(blah))

I expect you'll get the behavior you intended.

...Todd


On Fri, Apr 5, 2013 at 10:57 AM, Todd Lyons <tlyons@???> wrote:
> On Fri, Apr 5, 2013 at 7:52 AM, deisler <deisler@???> wrote:
>> if (defined Exim::expand_string('$acl_m_helo_check_a')) {
>
>> ||$acl_m_helo_check_a don't defined, but perl think what
>> ||$acl_m_helo_check_a defined.
>> Why does defined function in perl receives this value?
>
> I have not looked at the code, but I suspect that expand_string()
> returns '' instead of undef. '' is the empty string and passes the if
> defined test.
>
> ...Todd
> --
> The total budget at all receivers for solving senders' problems is $0.
> If you want them to accept your mail and manage it the way you want,
> send it the way the spec says to. --John Levine




--
The total budget at all receivers for solving senders' problems is $0.
If you want them to accept your mail and manage it the way you want,
send it the way the spec says to. --John Levine