in reply to Re: Re: Re: Re: autoflush and 'DESTROY'
in thread autoflush and 'DESTROY'

First no offense was meant, if was a feeble attempt at humour. It seemed funny at the time.

Secondly the problem is a warning. With your (or my solution) of hacking the modules symbol table you get a new warning as soon as the module is patched with a DESTROY() method vis:

package Chatbot::Eliza; sub new { bless {}, shift } sub DESTROY {} package Foo; use warnings; sub Chatbot::Eliza::DESTROY {} __DATA__ Subroutine Chatbot::Eliza::DESTROY redefined at script line 9 .

Thus by patching your code you generate a new warning when the module is eventually patched. Hence my point - fix the problem at its root not the symptom.

cheers

tachyon

s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print