Front page | perl.perl5.porters |
Postings from June 2001
[ID 20010629.003] Symbol::delete_package bug
Thread Next
From:
"Jörg" Ziefle
Date:
June 29, 2001 13:30
Subject:
[ID 20010629.003] Symbol::delete_package bug
Message ID:
200106292030.QAA03779@acmex.gatech.edu
This is a bug report for perl from gt4556a@gatech.edu,
generated with the help of perlbug 1.26 running under perl 5.00503.
-----------------------------------------------------------------
[Please enter your report here]
Problem: Symbol.pm 's delete_package function doesn't delete the package from
%INC, so when require()ing the package again, it's still found in %INC and not
reloaded.
Fix: making delete_package delete the package from %INC as well or documenting
this so the coder is aware of it and can manually remove the package from %INC.
Sample code and a patch on request.
[Please do not change anything below this line]
-----------------------------------------------------------------
---
Site configuration information for perl 5.00503:
Configured by willday at Fri Apr 2 11:27:26 EST 1999.
Summary of my perl5 (5.0 patchlevel 5 subversion 3) configuration:
Platform:
osname=solaris, osvers=2.6, archname=sun4-solaris
uname='sunos rom 5.6 generic_105181-12 sun4u sparc sunw,ultra-1 '
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef useperlio=undef d_sfio=undef
Compiler:
cc='cc', optimize='-fast', gccversion=
cppflags=''
ccflags =''
stdchar='unsigned char', d_stdstdio=define, usevfork=false
intsize=4, longsize=4, ptrsize=4, doublesize=8
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
alignbytes=8, usemymalloc=y, prototype=define
Linker and Libraries:
ld='cc', ldflags ='-fast -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib /usr/ccs/lib
libs=-lsocket -lnsl -lgdbm -ldb -ldl -lm -lc -lcrypt
libc=/lib/libc.so, so=so, useshrplib=false, libperl=libperl.a
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '
cccdlflags='-KPIC', lddlflags='-G -L/usr/local/lib'
Locally applied patches:
---
@INC for perl 5.00503:
/fuse4/47/gt4556a/perl/sun4-solaris
/fuse4/47/gt4556a/perl
/usr/local/lib/perl5/5.00503/sun4-solaris
/usr/local/lib/perl5/5.00503
/usr/local/lib/perl5/site_perl/5.005/sun4-solaris
/usr/local/lib/perl5/site_perl/5.005
.
---
Environment for perl 5.00503:
HOME=/fuse4/47/gt4556a
LANG (unset)
LANGUAGE (unset)
LD_LIBRARY_PATH (unset)
LOGDIR (unset)
PATH=/fuse4/47/gt4556a/local/bin:/usr/bin:/usr/ccs/bin:/opt/SUNWspro/bin:/usr/local/bin:.:/tnt1/38/gtwreck/bin:/fuse4/47/gt4556a/bin:/fuse4/47/gt4556a/local/bin:/fuse4/47/gt4556a/nmh/bin:/fuse4/47/gt4556a/nmh/lib
PERL5LIB=/fuse4/47/gt4556a/perl
PERL_BADLANG (unset)
SHELL=/usr/local/bin/zsh
Thread Next
-
[ID 20010629.003] Symbol::delete_package bug
by "Jörg" Ziefle