in reply to Re^2: Using Sendmail.pm problem
in thread Using Sendmail.pm problem

There's no point in trying to "tweak something in the perl module" as the Perl module is almost certainly not being loaded successfully. The problem is not with the module, it is with how you installed the module and how your are subsequently trying to load it.

If it works on another server then perhaps the sysadmin on that other server has already installed it, so your broken attempt to change @INC is having no effect.

Try running this from the command line of the server where it works. This will tell you where the file is being loaded from:

perl -MMail::Sendmail -le 'print $INC{"Mail/Sendmail.pm"}'
--
<http://dave.org.uk>

"The first rule of Perl club is you do not talk about Perl club."
-- Chip Salzenberg

Replies are listed 'Best First'.
Re^4: Using Sendmail.pm problem
by tariqahsan (Beadle) on Sep 22, 2006 at 15:08 UTC
    Aha! This is what I am getting running -

    perl -MMail::Sendmail -le 'print $INC{"Mail/Sendmail.pm"}'
    gmitest1@mckinley..gmdwit: /home/gmitest1/juice/scripts => Mail/Sendma +il.pm Mail/Sendmail.pm: package: not found Mail/Sendmail.pm[6]: =head1: not found Mail/Sendmail.pm[8]: Mail::Sendmail: not found Mail/Sendmail.pm[10]: =cut: not found Mail/Sendmail.pm[12]: =: not found Mail/Sendmail.pm[18]: syntax error at line 19 : `(' unexpected
    Any more suggestions?

    Thanks!

        I guess I don't have a choice but to have the system admin
        install this perl module in the proper manner
        Thank you all!

      Is this on the working server or the broken server? Looks a bit strange anyway. Looks like your shell is trying to execute a Perl module. Something is definitely broken there.

      --
      <http://dave.org.uk>

      "The first rule of Perl club is you do not talk about Perl club."
      -- Chip Salzenberg