New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"perldoc lib" doesn't describe actual behavior of "use lib" #7825
Comments
From web-perl@tarsier.netCreated by web-perl@tarsier.netOn perl 5.8.6 (as well as 5.8.4 and 5.6.1), the perldoc documentation my($arch_auto_dir, $arch_dir, $version_dir, $version_arch_dir) The documentation (from the perldoc of the same file) says: For each directory in LIST (called $dir here) the lib module also It should mention something about $dir/$version/$archname and $dir/$version Perl Info
|
From renee.baecker@smart-websolutions.deAttached is a patch for lib_pm.PL -- XING: http://www.xing.com/profile/Renee_Baecker |
From renee.baecker@smart-websolutions.de34339.patch--- lib_pm.PL.orig 2008-06-25 13:58:11.000000000 +0200
+++ lib_pm.PL 2008-06-25 13:57:11.000000000 +0200
@@ -223,11 +223,17 @@
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.
|
The RT System itself - Status changed from 'new' to 'open' |
From @TuxOn Wed, 25 Jun 2008 16:40:57 +0200, Renée Bäcker Attached is a patch for lib_pm.PL I would shorten that a bit to Inline Patch--- lib_pm.PL.orig 2008-06-25 13:58:11.000000000 +0200
+++ lib_pm.PL 2008-06-25 13:57:11.000000000 +0200
@@ -223,11 +223,17 @@
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:
+The current values of C<$version> and C<$archname> can be found with
+this command:
- perl -V:archname
+ perl -V:version\|archname
To avoid memory leaks, all trailing duplicate entries in @INC are
removed.
-- H.Merijn Brand Amsterdam Perl Mongers http://amsterdam.pm.org/ |
From @rgs2008/6/25 H.Merijn Brand <h.m.brand@xs4all.nl>:
This syntax (\|) is probably not very portable across command-line |
From @nwc10On Wed, Jun 25, 2008 at 04:40:57PM +0200, Rene Bcker wrote:
Aside - are we really avoiding leaks, or just avoiding waste? On Wed, Jun 25, 2008 at 06:51:14PM +0200, H.Merijn Brand wrote:
Arguably I'm bikeshedding too, but I prefer Renée's. Yours assumes Unix shell Nicholas Clark |
From @TuxOn Thu, 26 Jun 2008 08:54:04 +0200, "Rafael Garcia-Suarez"
but I found it a bit verbose to repeat the same command line twice with perl -V:'version|archname' Which won't work on windows or perl "-V:version|archname" which might break elsewhere (though for this pattern, I see no obvious -- |
From @rgs2008/6/25 Renée Bäcker <renee.baecker@smart-websolutions.de>:
Thanks, applied. |
From wyp3rlx02@sneakemail.comRafael Garcia-Suarez wrote:
Same for the CPAN release. The CPAN release is at 0.59 (instead of 0.57 Cheers, |
module@renee-baecker.de - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#34339 (status was 'resolved')
Searchable as RT34339$
The text was updated successfully, but these errors were encountered: