|
Posted by Gunnar Hjalmarsson on January 8, 2008, 5:09 pm
Please log in for more thread options
Bernie Cosell wrote:
> I was poking around at scripts to locate all installed modules and I'm a
> little confused [or else I'm missing something]. *every* script I found
> after a quick Google uses File::Find on @INC, but that seems wrong: my
> guess [verified by a quick test pgm] is that 'use' does *NOT* search
> subdirectories.
Well, let's take an example. If @INC contains the path
/usr/lib/perl5/5.8.6 and Find.pm is located in
/usr/lib/perl5/5.8.6/File, how would 'use' find the File::Find module
without looking in the subdirectories?
--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
|