When you run perl -v does it print
This is perl, v5.10.1 ...
or
This is perl, v5.8.5 ...
Whichever version it is, the modules you install must match because perl versions 5.8 and 5.10 are not binary compatible, i.e. modules compiled with 5.8 will not work with 5.10 and vice versa (except for pure Perl modules that don't check the version of the perl executable and don't use features of the newer version changed from or not present in the earlier version).
If you have both versions of perl installed on the same system, they must each have independent @INC paths for their modules. That means you need to install module X twice, once for each version.
The PREFIX= parameter to Makefile.PL is intended for use when you do not have root privileges and must install modules somewhere other than the standard /usr/lib (or whatever default). It will not - as you've seen - enable you to put v5.10 modules in v5.8 directories.
By the way, your posts will be far more readable if you add <code> tags around things like commands and output. If said <code> is lengthy you should also use <readmore> tags. Example:
|