The "correct" logic for loading libraries is
1. Load a module that comes in the Perl core
2. If a vendor has provided a different version to the core, use that instead
3. If a specific host has installed a different version to either of
the above, use that instead.
The lib/site ordering is actually an extremely long standing design mistake.
Adam K
2009/9/24 kmx via RT <bug-Perl-Dist-Strawberry@rt.cpan.org>:
Show quoted text> Thu Sep 24 04:35:49 2009: Request 49962 was acted upon.
> Transaction: Ticket created by KMX
> Queue: Perl-Dist-Strawberry
> Subject: 5.10.1.0-beta-2.zip - site/vendor/lib order
> Broken in: (no value)
> Severity: (no value)
> Owner: Nobody
> Requestors: kmx@cpan.org
> Status: new
> Ticket <URL:
https://rt.cpan.org/Ticket/Display.html?id=49962 >
>
>
> Hi,
>
> I have just a question whether it is right to have the following order
> of @INC items:
>
> 5.10.1.0-beta-2:
> 1. C:/strawberry/perl/site/lib
> 2. C:/strawberry/perl/vendor/lib
> 3. C:/strawberry/perl/lib
> 4. .
>
> comparing to 5.10.0.6:
> 1. C:/strawberry/perl/lib
> 2. C:/strawberry/perl/site/lib
> 3. .
>
> I am just wondering what was the reason for moving
> C:/strawberry/perl/lib after site/vendor.
>
> --
> kmx
>