问一个关于Mail::Sender安装的问题
有台centos服务器装了perl5.26,但是在安装Mail::Sender成功以后,每次use 这个模块时都会报错。
请问大佬门有没有遇到过这种问题,怎么解决呢
我不管是卸载重新tar.gz安装还是卸载掉perl5.26重新安装,都没能成功,
想做个报警功能都不行,特来求教。
脚本内容:
#!/usr/bin/perl -w
use v5.26;
use Mail::Sender;
say 'hello world';
下面是执行结果
perl test.pl
Mail::Sender is deprecated and you should look to Email::Sender instead at test.pl line 3.
hello world
那句提示是推荐你使用 Email::Sender 警告讯息不是错误
Mail::Sender is deprecated
and
you should look to
Email::Sender instead
Mail::Sender Module Version: 0.903
DEPRECATED ^
Mail::Sender is deprecated. Email::Sender is the go-to choice when you need to send Email from Perl. Go there, be happy!
对,只是警告而已。我一直用这个模块作邮件提醒,没问题。
页:
[1]