develooper Front page | perl.perl5.porters | Postings from July 2001

Re: [ID 20010629.003] Symbol::delete_package bug

Thread Previous | Thread Next
From:
Jarkko Hietaniemi
Date:
July 30, 2001 20:31
Subject:
Re: [ID 20010629.003] Symbol::delete_package bug
Message ID:
20010730222948.C10227@chaos.wustl.edu
On Fri, Jun 29, 2001 at 04:30:14PM -0400, Jörg Ziefle wrote:
> 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.

Consider this a 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

-- 
$jhi++; # http://www.iki.fi/jhi/
        # There is this special biologist word we use for 'stable'.
        # It is 'dead'. -- Jack Cohen

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About