in reply to Strict error on var when using Mail::SendMail
To disable the warning for those two variable:
# Prevent "used only once" warning for these variables. $Mail::SendMail::error = $Mail::SendMail::error; $Mail::SendMail::log = $Mail::SendMail::log;
To disable the warning for all variables:
no warnings 'once';
Update: There actually is a typo! $Mail::SendMail::... should be $Mail::Sendmail::....
|
|---|