Skip Menu |

This queue is for tickets about the Chatbot-Eliza CPAN distribution.

Report information
The Basics
Id: 66
Status: resolved
Priority: 0/
Queue: Chatbot-Eliza

Owner: Nobody in particular
Requestors: acme [...]

Bug Information
Severity: Critical
Broken in: 0.97
Fixed in: (no value)

Subject: DESTROY not supported
Download (untitled) / with headers
text/plain 584b
DESTROYing a Chatbot::Eliza object generates the following error: Can't access `DESTROY' field in object of class Chatbot::Eliza Which is because the AUTOLOAD is overzealous. Here is a patch: --- Wed Nov 28 17:04:58 2001 +++ Wed Nov 28 17:05:22 2001 @@ -374,6 +374,8 @@ my $field = $AUTOLOAD; $field =~ s/.*://; # Strip fully-qualified portion + return if $field eq 'DESTROY'; + unless (exists $self->{"_permitted"}->{$field} ) { croak "Can't access `$field' field in object of class $class : $!\n"; } ps the author isn't replying to his email

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to