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

Oh wise ones I am chasing my tail! I am getting the following error:
Can't locate Net/Telnet.pm: Permission denied at /usr/local/adm/bin/ +CiscoCollect line 15. BEGIN failed--compilation aborted at /usr/local/adm/bin/CiscoCollect l +ine 15.
Line 15 is where the script is:
use Net::Telnet;
This is a program that has run for years. Something has happened to my perl modual, I checked the Telnet.pm file is there I can read it. I reinstalled Net::Telnet just in case. Permissions are correct. I just need a nudge I have been looking at this for too long.

Replies are listed 'Best First'.
Re: Can't locate, But it IS there!
by thewebsi (Scribe) on Sep 16, 2014 at 03:46 UTC

    On the command-line, try:

    perl -e 'use Net::Telnet;'

    and also

    perl -e 'print join("\n",@INC);'

    That should help narrow it down.

    For example, there could be multiple Net/Telnet.pm files on the @INC path, and you are looking at the wrong one. Also, if there are multiple versions of Perl installed, then be sure to test the right one.

Re: Can't locate, But it IS there!
by Anonymous Monk on Sep 15, 2014 at 20:55 UTC

    Is the perl script running under a different user? Does the user have permission to read the directory as well as the file?

      It is accualy any script trying to use Telnet.pm. something stepped on my perl env and I just have not found it yet.