Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

I am using use Mail::Sendmail; in my local Perl 5.8 script on Windows 2000 to send emails. The emails work great and are sent to my Outlook 2003 email. Now I want to move the script up to a Windows 2000 Server but not sure if the Mail::Sendmail module is located on the server. To check if it is on the server does the Admin need to look in the C:\Perl\site\lib\Mail on the Web server? What is the best way to find if the module is there?

Replies are listed 'Best First'.
Re: Mail module
by philcrow (Priest) on Jan 09, 2007 at 19:43 UTC
    If you can invoke Perl from the command line, you can say:
    perl -MMail::Sendmail -e ''
    If it says nothing, the module is in the INC path. Otherwise, it will loudly complain "Can't locate Y.pm in @INC (@INC contains:..." the rest of the message is a list of directories where it looked for the module, but did not find it.

    Warning: I don't work on windows, but I think this works there too.

    Phil

      Thanks that works great.