Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hi Monks,

I'm using an older version of Activestate perl 5.004_02. It doesn't include PPM which would be my preferred method of installing modules, plus I have no way to install make, so I don't think the cpan module will work. I tries simply downloading the module in question from cpan, but when I try to run my script I get an @INC error. How can I get around this?

Thanks a lot,
Jonathan

Replies are listed 'Best First'.
Re: @INC problem
by davorg (Chancellor) on Nov 03, 2004 at 12:03 UTC

    Is there any chance that you can upgrade to a version of Perl that isn't seven years old?

    You can't just download Perl modules and expect them to work. They need to be installed in the correct directories. It is possible to do this manually, but it's not recommended.

    What was the error that you got?

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

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

      thanks for the quick response
      the error message is like this:
      Can't locate Net/Telnet.pm in @INC (@INC contains: Z:\test\perl z:\tes +t\sybperl\perl\lib Z:\test\sybperl\perl\lib\site z:\test\sybperl\perl +\lib\File z:\test\sybperl\perl\lib\temp C:\Perl\lib\site C:\Perl\lib +c:\perl\lib c:\perl\lib\site c:\perl\lib\site .) at testscript.pl lin +e 162. BEGIN failed--compilation aborted at testscript.pl line 162.
      Jonathan

        Yeah, that's pretty much what I expected to see. You need to put Telnet.pm in a directory called Net in one of the directories in your @INC. Or, alternatively, change @INC (with "use lib") to include the driectroy where the library is installed.

        All in all, you'd be much better off upgrading either your Perl, your sysadmin or your job as appropriate.

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

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

        Where did you download the module to?

        --- Jay

        All code is untested unless otherwise stated.
        All opinions expressed are my own and are intended as guidance, not gospel; please treat what I say as such and as Abigail said Think for yourself.
        If in doubt ask.

Re: @INC problem
by Anonymous Monk on Nov 03, 2004 at 23:18 UTC