December 22nd, 2013, 02:48 AM
I have perl on my server, not installed, but exist because of another program I installed - HP Aegnt.
That perl is not installed but it exists.
I can run perl scripts if I use the perl command from the specific path.
My question is:
That perl I have can't recognize the following libs:
I want to use those libs but I can't install them on the server.
Can I use FindBin within the script and make it know those libs?
I do have the following PM files:
I've tried the following script:
use lib $FindBin::Bin;
While having the above PMs at the same directory as the script.
December 22nd, 2013, 10:24 AM
I think it's as simple as just using use lib. No need for a module.
December 24th, 2013, 04:40 AM
It's not working.
The problem is that I need to use dependencies libs.
LWP -> UserAgent.
When you install perl, those libs will be under directories:
Dir lib -> LWP.pm
Dir lib\LWP -> UserAgent.pm
December 24th, 2013, 09:49 AM
It should work. What does is simply to add the directories of the list to Perl's search path so that later use statements will find modules which are not located on Perl's default search path. In other words, this will not prevent Perl from finding other modules located somewhere else in Perl's default search path.
If it does not work, then you probably have something else missing (such as other modules not installed).
Comments on this post