in reply to Re: Loading sendmail module
in thread Loading sendmail module

I just found an old one under Perl 5.005 directory:
/usr/local/lib/perl5/site_perl/5.005/Mail/Mailer
I tried calling it but gives me back an error message saying:
Can't locate Mail/Sendmail.pm in @INC (@INC contains:.....etc..
Here is how I did it:
use lib '/usr/local/lib/perl5/site_perl/5.005/Mail'; use Mail::Sendmail;
Please advise

Replies are listed 'Best First'.
Re: Re: Re: Loading sendmail module
by jey (Pilgrim) on Jan 29, 2004 at 18:08 UTC

    Try using:

    use lib '/usr/local/lib/perl5/site_perl/5.005';

    Or if it doesn't work, I would definitely advice the

    BEGIN...
    --
    jey
      Thanks I tried all this and still get same error:
      use lib '/usr/local/lib/perl5/site_perl/5.005/'; use Mail::Sendmail;
      and
      BEGIN {shift @INC, "/usr/local/lib/perl5/site_perl/5.005";} use Mail::Sendmail;
      and
      BEGIN {shift @INC, "/usr/local/lib/perl5/site_perl/5.005/Mail/Mailer"; +} use Mail::Sendmail;
      and
      BEGIN {shift @INC, "/usr/local/lib/perl5/site_perl/5.005/Mail";} use Mail::Sendmail;
      Any other suggestions?