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

Surprisingly as I mentioned it works fine in a different server.
I know I should try to get this perl module installed
in the right way. I'll try to see if I can tweak something in the perl module itself to make it work for now.

Any suggestions in this regard would be much appreciated.

Thanks

Replies are listed 'Best First'.
Re^3: Using Sendmail.pm problem
by davorg (Chancellor) on Sep 22, 2006 at 14:48 UTC

    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

      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!

        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