X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2Flib_pm.PL;h=8591922768393afe81e8c86de7d35d70def1d7ff;hb=23f6cb285656c85849665669b0a13828f0d8b395;hp=3332df7f05823cb2e3022076ed718aad01b47939;hpb=a811a5cf5ba5b36dcbcd934066ae037d7f53f5ee;p=p5sagit%2Fp5-mst-13.2.git diff --git a/lib/lib_pm.PL b/lib/lib_pm.PL index 3332df7..8591922 100644 --- a/lib/lib_pm.PL +++ b/lib/lib_pm.PL @@ -86,7 +86,7 @@ my \@inc_version_list = $Config_inc_version_list; print OUT <<'!NO!SUBS!'; our @ORIG_INC = @INC; # take a handy copy of 'original' value -our $VERSION = '0.57'; +our $VERSION = '0.61'; my $Is_MacOS = $^O eq 'MacOS'; my $Mac_FS; if ($Is_MacOS) { @@ -223,11 +223,17 @@ For each directory in LIST (called $dir here) the lib module also checks to see if a directory called $dir/$archname/auto exists. If so the $dir/$archname directory is assumed to be a corresponding architecture specific directory and is added to @INC in front of $dir. +lib.pm also checks if directories called $dir/$version and $dir/$version/$archname +exist and adds these directories to @INC. The current value of C<$archname> can be found with this command: perl -V:archname +The corresponding command to get the current value of C<$version> is: + + perl -V:version + To avoid memory leaks, all trailing duplicate entries in @INC are removed.