Subject: | AUTOLOAD error confusing w/o reference to object class |
I get this error sometimes, but not always:
*** FATAL PROGRAM ERROR!! Unknown method 'address'
*** which the program has attempted to call for the object:
***
199.110.65.125.zen.spamhaus.org. 300 IN A \# 4 7f00000b
***
*** This object does not have a method 'address'. THIS IS A BUG
*** IN THE CALLING SOFTWARE, which incorrectly assumes that the
*** object would be of a particular type. The type of an object
*** should be checked before calling any of its methods.
The line of code calling "address" is:
my @reply = map { $_->address } grep { $_->type eq 'A' } $query->answer;
So, I only call address after checking that type is A. This suggests that maybe the record isn't being blessed into the right class sometimes..? It might be useful to include the class of the object in the error as well.
**FURTHERMORE**: This error never occurred/occurs with v0.63. It only happened when I tried upgrading to 0.82
--
rjbs