turkanis has asked for the wisdom of the Perl Monks concerning the following question:
I have some code that causes the following error:
Can't resolve method "name" overloading """" in package "overload" at <file> line <line>.(The code referenced by <file> and <line> is the beginning of an eval block that contains some complex code.)
Stepping through the code in a debugger, I have found that the error is trigger by the "bless" statement in this constructor, located in a different file:
sub new { my ($class) = @_; my $self = new <module-name>; bless $self, $class; return $self; }
I am puzzled because the code worked fine in a previous version. I am in the middle of a complex merge and don't see any obvious changes that could have caused this error. In particular, none of the modules directly involved uses the "overload" pragma.
Any help would be greatly appreciated.
|
|---|