in reply to PERL5LIB-How does it work

I am the human manual.
$ perldoc -t perlrun | less +/PERL5LIB

PERL5LIB
A list of directories in which to look for Perl library files before looking in the standard library and the cur- rent directory. Any architecture-specific directories under the specified locations are automatically included if they exist. If PERL5LIB is not defined, PERLLIB is used. Directories are separated (like in PATH) by a colon on unixish platforms and by a semicolon on Windows (the proper path separator being given by the command "perl -V:path_sep"). When running taint checks (either because the program was running setuid or setgid, or the -T switch was used), nei- ther variable is used. The program should instead say: use lib "/my/directory";

Replies are listed 'Best First'.
Re^2: PERL5LIB-How does it work
by Anonymous Monk on Sep 18, 2007 at 18:06 UTC
    Thanks,bruceb3. I found that but didn't read it carefully. That seems to say that it looks only at the files in the directory unless there is are "architecture-specific directories". Since they descended into "archtecure-specific directories" I had assumed they descended into all directories.
    klee12