Add the line:
sub DESTROY {}
to the Chatbot::Eliza code to fix the warning. For some background on DESTROY see Object scope and DESTROY
From perlman:perltoot:
Destruction happens automatically via Perl's garbage collection (GC) system, which is a quick but somewhat lazy reference-based GC system. To know what to call, Perl insists that the destructor be named DESTROY. Perl's notion of the right time to call a destructor is not well-defined currently, which is why your destructors should not rely on when they are called.
Evidently autoflush is altering when DESTROY is called. I recall reading somewhere that you should include a DESTROY() method to avoid warnings like this but can't remember where for the life of me.
cheers
tachyon
s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print
In reply to Re: autoflush and 'DESTROY'
by tachyon
in thread autoflush and 'DESTROY'
by Chady
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |