in reply to Can't locate object method "new"

Are you installing LWP with the same perl that you running the scripts with? Have you made sure to do a 'use lib' for the directory that LWP is in, assuming you're not installing it as root?

------
We are the carpenters and bricklayers of the Information Age.

Then there are Damian modules.... *sigh* ... that's not about being less-lazy -- that's about being on some really good drugs -- you know, there is no spoon. - flyingmoose

I shouldn't have to say this, but any code, unless otherwise stated, is untested

Replies are listed 'Best First'.
Re^2: Can't locate object method "new"
by Beau Landeaux (Novice) on Sep 09, 2004 at 19:46 UTC
    Installed as root. I added the following to my program (same stuff I got from "perl -V"--didn't know if I needed'em all):
    use lib "/usr/local/lib/perl5/5.8.4/sun4-solaris"; use lib "/usr/local/lib/perl5/5.8.4"; use lib "/usr/local/lib/perl5/site_perl/5.8.4/sun4-solaris"; use lib "/usr/local/lib/perl5/site_perl/5.8.4"; use lib "/usr/local/lib/perl5/site_perl";
    Same result. I have no objection to wiping all Perl off the host and reinstalling it all from scratch again
      There's a much simpler solution, but it's just not an obvious one. Plus, reinstalling Perl isn't a quick thing to do. I'd create a simple testcase that reproduces the problem, before doing much more.

      ------
      We are the carpenters and bricklayers of the Information Age.

      Then there are Damian modules.... *sigh* ... that's not about being less-lazy -- that's about being on some really good drugs -- you know, there is no spoon. - flyingmoose

      I shouldn't have to say this, but any code, unless otherwise stated, is untested

        I wrote a simple test script, turned on debugging, and found my problem--missing Crypt-SSLeay. Man! Do I feel stoooopid (something I have a lot of experience at). Thank you for your help. Your suggestions triggered new lines of thinking that broke me out of looking at the same stuff and not seeing the real problem. Thank you again, Beau.