in reply to Installing perl modules

Hi Guys, Thanks for the replies. The module in question is the Net::SSH::Expect module. I download the tar file, unzipped it and found the Expect.pm in the lib folder. I then proceeded to change the PERL5LIB Variable using export. However, nothing changed. Do I need to include anything else in my script apart from "use lib '~/perl_modules' ", if I try putting in the "use Net::SSH::Expect" it flags as an error saying it could not find it. Thanks in advance.

Replies are listed 'Best First'.
Re^2: Installing perl modules
by toolic (Bishop) on Apr 11, 2011 at 20:19 UTC
    If you are literally using the tilde character, try using the full path to your "perl_modules" dir instead.

    Show us the exact error message, using "code" tags (see Writeup Formatting Tips).

    Your Expect.pm file must be under a "Net/SSH" directory path.

    This will also be useful:

    use Data::Dumper; print Dumper(\@INC);