February 2012
Intermediate to advanced
1184 pages
37h 17m
English
use inc::latest "Module::Build";
Some module authors started distributing their dependencies
inside their distributions in an inc directory. They wanted to use a particular
version of Module::Build, for instance, so they’d install that module in inc in their distribution and prefer it to any
installed version. Before the Perl tool chain understood configure_requires, this was a hack to start the
build process with modules within the distribution.
The inc::latest module tells perl
to load a version in inc, but only if
its version is greater than the one installed in the rest of @INC.