This is part of The Pile, a partial archive of some open source mailing lists and newsgroups.
From: Tim Conrow <tim@ipac.caltech.edu>
Subject: Problem with 'use lib'
Date: Wed, 02 Aug 2000 09:54:58 -0700
Thus sayeth 'perldoc lib':
"use lib LIST;
...
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."
Follow:
% perl -MConfig -wle 'print "@Config{qw(version archname)}"'
5.6.0 i686-linux
% mkdir -p foo/i686-linux/auto
% perl -wle 'use lib qw(foo); print "@INC"'
foo /usr/local/lib/perl5/5.6.0/i686-linux /usr/local/lib/perl5/5.6.0
/usr/local/lib/perl5/site_perl/5.6.0/i686-linux
/usr/local/lib/perl5/site_perl/5.6.0 /usr/local/lib/perl5/site_perl .
What am I missing? Why isn't foo/i686-linux in @INC?
Thanks.
-- Tim
--
-- Tim Conrow tim@ipac.caltech.edu 626-395-8435
Path: nntp.stanford.edu!not-for-mail
From: sthoenna@efn.org (Yitzchak Scott-Thoennes)
Newsgroups: comp.lang.perl.moderated
Subject: Re: Problem with 'use lib'
Date: Wed, 02 Aug 2000 17:25:05 -0700
Lines: 21
===
From: yf110@victoria.tc.ca (Malcolm Dew-Jones)
Subject: Re: Problem with 'use lib'
Date: 2 Aug 2000 16:31:08 -0800
Tim Conrow (tim@ipac.caltech.edu) wrote:
: Thus sayeth 'perldoc lib':
:
: "use lib LIST;
: ...
: 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."
: Follow:
: % perl -MConfig -wle 'print "@Config{qw(version archname)}"'
: 5.6.0 i686-linux
: % mkdir -p foo/i686-linux/auto
: % perl -wle 'use lib qw(foo); print "@INC"'
: foo /usr/local/lib/perl5/5.6.0/i686-linux /usr/local/lib/perl5/5.6.0
: /usr/local/lib/perl5/site_perl/5.6.0/i686-linux
: /usr/local/lib/perl5/site_perl/5.6.0 /usr/local/lib/perl5/site_perl .
: What am I missing? Why isn't foo/i686-linux in @INC?
Does the directory foo/i686-linux/auto exist? (and this path is relative
to the current directory I would assume).
Path: nntp.stanford.edu!not-for-mail
From: Tim Conrow <tim@ipac.caltech.edu>
Newsgroups: comp.lang.perl.moderated
Subject: Re: Problem with 'use lib'
Date: Thu, 03 Aug 2000 10:12:41 -0700
Organization: Caltech
Lines: 26
===
From: sthoenna@efn.org (Yitzchak Scott-Thoennes)
Subject: Re: Problem with 'use lib'
Date: Thu, 03 Aug 2000 13:05:09 -0700
In article <3989A809.FF5C6507@ipac.caltech.edu>,
Tim Conrow <tim@ipac.caltech.edu> wrote:
> Yitzchak Scott-Thoennes wrote:
> >
> > A quick look at lib.pm shows the code is inconsistent with the docs and
> > with itself.
> >
> > use lib 'foo' will add foo/$ver and foo/$ver/$archname if they exist
> > (regardless of an auto subdir).
> >
> > But no lib 'foo' will remove foo/$archname (but only if it has an auto
> > subdir).
>
> So ... what now? A bug report? I assume a patch would be a mistake,
> since it looks like there's a policy issue that needs to be resolved:
> What's the correct behavior?
Perhaps a bug report with two patches that make everything consistent
the 'new' way and the 'old' way.
I seem to recall there was a plan to do some major changes to what
directories got used on the todo list for 5.6.0 but that noone did
said changes.
Path: nntp.stanford.edu!not-for-mail
From: Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai =?iso-8859-1?q?Gro=DFjohann?=)
Newsgroups: comp.lang.perl.moderated
Subject: Re: invoke debugger on `die'?
Date: 7 Aug 2000 09:57:44 GMT
Organization: University of Dortmund, Germany
Lines: 87
===