【发布时间】:2017-05-29 15:16:46
【问题描述】:
我的问题是 exim.conf,我尝试使用 perl 设置主机名
在 exim.conf 中
host = "${perl{func}{arg}}"
在 exim.pl.local 中,它通过以下方式从 exim.conf 访问 Exim 变量
my $phost = Exim::expand_string('$primary_hostname');
但是,该值没有得到评估,"$phost" 的值如下所示。
print $phost //outputs ${perl{func}{arg}}.
我可以通过什么方式更改 exim.conf 或 exim.pl.local 中的代码以获得子程序的结果?
【问题讨论】: