我有一个Perl脚本,我从一个包含变量名的配置文件中读取一行.当我将该行读入变量时,不会放入需要用给定值替换的变量名.我使用Config :: Tiny来访问我的配置文件.例:
thing=I want to $this
Run Code Online (Sandbox Code Playgroud)
$this = "run";
my $thing = $Config->{thing};
print $thing;
Run Code Online (Sandbox Code Playgroud)
print $thing出来了I want to $this.我想要它出来I want to run.
我需要在不使用sendmail的情况下在perl CGI脚本中发送包含html的电子邮件.有一个简单的方法来做到这一点?