Chady has asked for the wisdom of the Perl Monks concerning the following question:
fellow monks, here's the set-up:
index.pl is running and at a time it will gather and eval the string:
$string = 'require ./scripts/eliza.pl'; eval "$string";
now at eliza.pl I have this:
$|++; use Chatbot::Eliza; ## do something with eliza...
Now if I run this I get the following warning message:
[Sat Mar 16 21:44:55 2002] C:\Inetpub\wwwroot\index.pl: (in cleanup) C +an't access `DESTROY' field in object of class Chatbot::Eliza : [Sat +Mar 16 21:44:55 2002] C:\Inetpub\wwwroot\index.pl: at ./scripts/eliza +.pl line 34
the problem goes away if I remove the autoflush $|++ line. Can someone explain to me why is this happening?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: autoflush and 'DESTROY'
by tachyon (Chancellor) on Mar 16, 2002 at 20:44 UTC | |
by Juerd (Abbot) on Mar 16, 2002 at 21:00 UTC | |
by tachyon (Chancellor) on Mar 16, 2002 at 21:10 UTC | |
by Juerd (Abbot) on Mar 16, 2002 at 21:29 UTC | |
by tachyon (Chancellor) on Mar 17, 2002 at 09:32 UTC | |
by mirod (Canon) on Mar 17, 2002 at 07:14 UTC | |
|