[Xapian-discuss] Perl bindings: QueryParser::OP_AND
Olly Betts
olly at survex.com
Fri Jul 14 20:10:53 BST 2006
On Fri, Jul 14, 2006 at 11:53:58AM -0700, John Wang wrote:
> When I remove the quotes I get the following fatal error when running Perl's
> (often recommended) strict pragma:
>
> [error] Bareword "Search::Xapian::QueryParser::OP_AND" not allowed while
> "strict subs" in use
I've always just used:
use Search::Xapian qw(:ops);
and then just used OP_AND unqualified. Given the error you got, I'm not
sure how you'd refer to OP_* without importing them like this (perhaps
it's not possible).
Cheers,
Olly
More information about the Xapian-discuss
mailing list