Subject: | Can't call method "clean" on an undefined value during global destruction. |
Keep getting this error message from my error system on Perl:
Can't call method "clean" on an undefined value at
/usr/perl5/site_perl/5.8.4/XML/Smart.pm line 1098 during global destruction.
Not real familiar with Perl OO and object destruction, but it looks like
the DESTROY sub isn't checking the existence of $this before trying to
call the clean subroutine. You should change it to:
$$this->clean if ($this && $$this);
Can't find a way to get rid of it on my program, so I'll have to throw
away my error messages right before the exit.