From: Mike S. <m...@pe...> - 2004-05-28 06:59:44
|
Hi all, while investigating the circular reference problem, I found out another nugget: Does anybody know why this snippet results in action items for global destruction: #!/usr/bin/perl package Log::Log4perl::Logger; sub DESTROY { warn "Destroying $_[0]"; } package main; use Log::Log4perl::Logger; $Log::Log4perl::Logger::LOGGERS_BY_NAME = {}; It will print Destroying Log::Log4perl::Logger=HASH(0x8128554) at t4 line 13 during global destruction. Although, I can't see any circular references in the ROOT logger defined in Logger.pm. Hmm. -- -- Mike Mike Schilli m...@pe... |