You can't mix binary perl modules between major versions of Perl (or between processor architectures) To get XML::XPath working in your perl 5.12.x install you will need to separately install the same module there.
To keep the two perl installs separate, I suggest you create some batch files (named perl_58.bat and perl_512.bat) that setup the environment for each perl. You should not need to explicitly set PERL5LIB for correctly installed CPAN modules.
If it sounds like to much work to maintain two separate perl installs, then an alternative would be to configure git to use your perl 5.12 install.
In reply to Re: 2 perl distributions on Windows 7
by chrestomanci
in thread 2 perl distributions on Windows 7
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |