From: Ray Z. <rz...@co...> - 2004-04-29 19:18:10
|
Chris, I have a script that uses SPOPS-0.83 that's giving me the follow error when it exits ... (in cleanup) Can't call method "is_debug" on an undefined value at /usr/local/perl-5.8.2/lib/site_perl/5.8.2/SPOPS.pm line 179 during global destruction This is in the SPOPS::DESTROY method, which just says ... sub DESTROY { my ( $self ) = @_; $log->is_debug && $log->debug( "Destroying SPOPS object '", ref( $self ), "' ID: " . "'", $self->id, "' at time: ", scalar localtime ); } How is this possible? Is it destroying $log before it destroys the last SPOPS object? I don't know much about the order things are destroyed during global destruction, but there should be a way to avoid this don't you think? Ray Zimmerman Director, Laboratory for Experimental Economics and Decision Research 428-B Phillips Hall, Cornell University, Ithaca, NY 14853 phone: (607) 255-9645 fax: (815) 377-3932 |