in reply to Re: Strict error on var when using Mail::SendMail
in thread Strict error on var when using Mail::SendMail

Thanks your comments have helped me solve the problem, and I no longer will use diagnostics, but instead, warnings.

Now I have one error left, it is an "undefined subroutine &main::sendmail"

This function should have been exported to the namespace by default upon my call to the Mail::SendMail module, as the CPAN documentation states: sendmail is the only thing exported to your namespace by default.

I have tried calling it with a & in front, and also placing the Mail::SendMail::sendmail namespace in front, nothing seems to work.

Any ideas why it seems I cannot call the subroutine?

  • Comment on Re^2: Strict error on var when using Mail::SendMail

Replies are listed 'Best First'.
Re^3: Strict error on var when using Mail::SendMail
by arc_of_descent (Hermit) on Mar 23, 2007 at 06:43 UTC

    I should have pointed this out in my earlier post. Isn't Mail::SendMail a typo? It should be Mail::Sendmail. Hope this helps.


    --
    Rohan