I only call my scripts via /usr/bin/perl so Im assuming (naively) that there is only one version installed.
aeolus (/vol0/homes/person/progs)$ /usr/bin/perl -v
This is perl, v5.8.5 built for i386-linux-thread-multi
Is THAT the problem? I see other versions in the path but looking again I don't see anything more recent than 5.8.5.
Well I'll be tarred and feathered. (likely). I'll ask for an upgrade and see what happens. | [reply] [d/l] |
aeolus (/vol0/homes/person/progs)$ /usr/bin/perl -v
Run which perl instead (will tell you the perl binary you're actually using).
| [reply] [d/l] |
Agreed. If the default perl on your path is different from /usr/bin/perl, that'd be why your script can't find the module you've installed. You then could either a) update your script to point to the version of perl that your shell is already using, or b) install your module for the version of perl that your script is using. Either way could be correct, I suppose, depending on your scripts needs. You might also be able to do something like: #! /usr/bin/env perl to run your script with whatever perl your shell would use by default, but that way might lie madness...
| [reply] [d/l] |