From: Renee Baecker Date: Wed, 25 Jun 2008 16:40:57 +0000 (+0200) Subject: [perl #34339][PATCH] "perldoc lib" doesn't describe actual behavior X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=b11304a19556c47855448c1edd428f188c030a65;p=p5sagit%2Fp5-mst-13.2.git [perl #34339][PATCH] "perldoc lib" doesn't describe actual behavior Message-ID: <486258F9.4020505@smart-websolutions.de> p4raw-id: //depot/perl@34093 --- diff --git a/lib/lib_pm.PL b/lib/lib_pm.PL index 3332df7..36aa915 100644 --- a/lib/lib_pm.PL +++ b/lib/lib_pm.PL @@ -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.