Guten Tag Marcel Loose,
am Mittwoch, 9. März 2011 um 15:14 schrieben Sie:

> Is the fact that
> <quote>
>     "use lib LIST;" 
>   is /almost/ the same as saying 
>     "BEGIN { unshift(@INC, LIST) }" 
> </quote>
> the reason that the latter doesn't work, whereas setting PERL5LIB does?
> I cannot really deduce that from the documentation of "use lib".

Yes, I thought so, but depends on the contents of the lib-directory.
The following is not made if one just adds to @INC, but is executed
for paths set with PERL5LIB.

> 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.

Mit freundlichen Grüßen,

Thorsten Schöning

-- 
Thorsten Schöning
AM-SoFT IT-Systeme - Hameln | Potsdam | Leipzig
 
Telefon: Potsdam: 0331-743881-0
E-Mail:  [email protected]
Web:     http://www.am-soft.de

AM-SoFT GmbH IT-Systeme, Konsumhof 1-5, 14482 Potsdam
Amtsgericht Potsdam HRB 21278 P, Geschäftsführer: Andreas Muchow

_______________________________________________
scmbug-users mailing list
[email protected]
http://lists.mkgnu.net/cgi-bin/mailman/listinfo/scmbug-users

Reply via email to