-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Steffen Mueller wrote:
| Hi Darian,
|
| dap @ darianpatrick . com wrote:
|> I was under the impression that when using
|>
|> use PAR {repository => "$Bin/../par/repo"};
|>
|> the coderef used to make PAR work was placed at the front of @INC, taking
|> precedence over modules on the filesystem. Apparently this is a mistaken
|> assumption. I'm getting the following error:
| [...]
|> Do I need to be doing something more to make modules from my PAR repo
take
|> precedence over modules installed on the filesystem?
|
| You're right, that assumption is wrong. That is, however, not at all
| your fault. I think the documentation isn't clear about this. If you
| load a .par file with "use PAR....", it will be added to the front of
| INC by default (cf. the fallback option to make it go to the end). If
| you use a repository, it will be placed at the end of INC because it's
| assumed that using the repository is a lot slower than anything local.
|
| Now, there's currently no (simple and forward-compatible) way to do a
| "use PAR {repository =>...}" and have it be preferred over the local
| modules. There should be a way, of course. PAR 0.992 is on its way to
| CPAN. When it arrives on your mirror in a couple of hours, you can do
| this by explicitly setting "fallback => 0" when loading a repository.
|
| Best regards,
| Steffen
|
Thanks a lot Steffen. This works swimmingly.
- --
Darian Anthony Patrick XMPP/SMTP: <[email protected]>
===========================================================
~ 88FC 044D 5144 BD3A DAF8 FD9F 8C9E DF14 9AD3 4117
===========================================================
~ http://claimid.com/darianapatrick
-----BEGIN PGP SIGNATURE-----
iEYEARECAAYFAknbtiQACgkQjJ7fFJrTQRfPawCffv5H0kFbS9Qt8QhPiXN+4vs6
gKwAoMMYeYoftbvR/Ix+iDDd7/yv4Nju
=/qGt
-----END PGP SIGNATURE-----