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

I think the message yo are getting is due to the enabling diagnostics. I feel use warnings is better than use diagnostics as it diagostics is just the verbose part of it.
  • Comment on Re: Strict error on var when using Mail::SendMail

Replies are listed 'Best First'.
Re^2: Strict error on var when using Mail::SendMail
by Anonymous Monk on Mar 23, 2007 at 00:18 UTC
    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?

      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