Subject: | A missing method warning when running example from documentation. |
Date: | Fri, 14 Mar 2008 09:56:40 -0700 |
To: | bug-Net-Z3950-ZOOM [...] rt.cpan.org |
From: | John Watkins <jcw [...] odikia.com> |
First the relevant background info:
Net-Z3950-ZOOM version 1.21
Yaz version 3.0.20
Mac OSX 10.4.11 on a 1.83 GHz Intel core Duo, MacBook Pro.
This example code is adapted from the ZOOM::Connection portion of the
documentation
use ZOOM;
my $conn = new ZOOM::Connection("indexdata.dk:210/gils");
print("server is '", $conn->option("serverImplementationName"), "'\n");
$conn->option(preferredRecordSyntax => "usmarc");
my $rs = $conn->search_pqf('@attr 1=4 mineral');
my $ss = $conn->scan('@attr 1=1003 a');
if ($conn->errcode() != 0) {
die("somthing went wrong: " . $conn->errmsg());
}
$conn->destroy();
Running the example as shown produces the following output:
Show quoted text
>perl -w z3950_1.pl
server is 'Zebra Information Server/GFS/YAZ'
Can't call method "_query" without a package or object reference at /
Library/Perl/5.8.6/darwin-thread-multi-2level/ZOOM.pm line 511.
Just thought you'd like to know.
John Watkins