Subject: | Mail::Field tries to require Mail::Field::$p with $p being every basename in my file system |
on line 115 of Mail::Field $INC{$f} is matched for .*Mail\W+Field. the begining can be empty, at which point $dir is assigned "" . $dir_sep, or "/" on my box.
I don't know how $INC is populated with such values, and I don't really care. The point is that subsequently it tries to require everything in the file system. It should also be noted that the values of $INC can even be undefined at times.
I added this:
next if !$INC{$f} or $INC{$f} eq $f;
as line 111, as the first statement in the foreach loop, and it helps, but it's not very pretty.
This is on MacOS X 10.3, with perl 5.9.1
uname -a:
Darwin syeeda.woobling.org 7.7.0 Darwin Kernel Version 7.7.0: Sun Nov 7 16:06:51 PST 2004; root:xnu/xnu-517.9.5.obj~1/RELEASE_PPC Power Macintosh unknown PowerBook3,2 Darwin
perl -V
Summary of my perl5 (revision 5 version 9 subversion 1) configuration:
Platform:
osname=darwin, osvers=7.4.0, archname=darwin-thread-multi-2level
uname='darwin syeeda.int.hyperroll.com 7.4.0 darwin kernel version 7.4.0: wed may 12 16:58:24 pdt 2004; root:xnuxnu-517.7.7.obj~7release_ppc power macintosh powerpc '
config_args=''
hint=recommended, useposix=true, d_sigaction=define
usethreads=define useithreads=define usemultiplicity=define
useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cc', ccflags ='-pipe -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -I/usr/local/include',
optimize='-Os',
cppflags='-no-cpp-precomp -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -I/usr/local/include'
ccversion='', gccversion='3.3 20030304 (Apple Computer, Inc. build 1640)', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=8
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='env MACOSX_DEPLOYMENT_TARGET=10.3 cc', ldflags =' -L/usr/local/lib'
libpth=/usr/local/lib /usr/lib
libs=-ldbm -ldl -lm -lc
perllibs=-ldl -lm -lc
libc=/usr/lib/libc.dylib, so=dylib, useshrplib=true, libperl=libperl.dylib
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_dyld.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' '
cccdlflags=' ', lddlflags=' -bundle -undefined dynamic_lookup -L/usr/local/lib'
Characteristics of this binary (from libperl):
Compile-time options: MULTIPLICITY USE_ITHREADS USE_LARGE_FILES PERL_IMPLICIT_CONTEXT
Built under darwin
Compiled at Aug 20 2004 09:00:12
%ENV:
PERL5_CPANPLUS_CONFIG="/Users/nothingmuch/.cpanplus/config"
@INC:
/usr/local/lib/perl5/5.9.1/darwin-thread-multi-2level
/usr/local/lib/perl5/5.9.1
/usr/local/lib/perl5/site_perl/5.9.1/darwin-thread-multi-2level
/usr/local/lib/perl5/site_perl/5.9.1
/usr/local/lib/perl5/site_perl
.