[Xapian-discuss] Xapian 1.2.9 uses UNIVERSAL->import, deprecated in perl-5.14.2

Olly Betts olly at survex.com
Thu Mar 22 14:08:23 GMT 2012


On Thu, Mar 22, 2012 at 10:34:33AM +0100, Johan Sydseter wrote:
> Xapian 1.2.9 uses UNIVERSAL->import, deprecated in perl-5.14.2
>
> We noticed that we could not get our perl tests to pass since  
> UNIVERSAL->import is deprecated in perl-5.14.2.

That's a new change in 1.2.9 - I found a bad bit of one of the tests
which had gone unnoticed as the warning was ignored.  Making them
fatal seemed a good idea, but this is some fallout (good in a way,
as it's good to get this fixed too).

> The message given was:
>
> UNIVERSAL->import is deprecated and will be removed in a future perl at  
> /usr/local/share/perl/5.14.2/Search/Xapian.pm line 3158

OK, this seems to be in the SWIG-based Search::Xapian in xapian-bindings
(the hand-coded Xapian.pm doesn't have a line 3158).

It looks like we just drop:

    use UNIVERSAL qw( isa );

And use UNIVERSAL::isa instead of isa.  If anyone knows of a better
way to update this code, please let me know.

Cheers,
    Olly



More information about the Xapian-discuss mailing list