Marcus Ramberg
2006-Nov-07 13:50 UTC
[Xapian-discuss] Search::Xapian::PostingIterator broken in 0.9.6?
I'm having some trouble with the PostingIterator in the latest cpan
release of Search::Xapian. The offending code is two calls to isa
formed like this
isa($other,'Search::XapianPostingIterator');
They die with an autoloader error about not finding isa. They do
however seem to work fine if rewritten like this:
$other->isa('Search::Xapian::PostingIterator');
Am I missing something?
Marcus
Olly Betts
2006-Nov-07 15:28 UTC
[Xapian-discuss] Search::Xapian::PostingIterator broken in 0.9.6?
On Tue, Nov 07, 2006 at 02:45:08PM +0100, Marcus Ramberg wrote:> I'm having some trouble with the PostingIterator in the latest cpan > release of Search::Xapian. The offending code is two calls to isa > formed like this > isa($other,'Search::XapianPostingIterator'); > > They die with an autoloader error about not finding isa. They do > however seem to work fine if rewritten like this: > > $other->isa('Search::Xapian::PostingIterator');I copied this code from some Alex wrote in Xapian/PositionIterator.pm, but failed to copy this line at the top: use UNIVERSAL qw( isa ); So adding that seems a better fix, if only for consistency within the code. Do you have a simple testcase for this? Cheers, Olly