This queue is for tickets about the Net-Z3950-ZOOM CPAN distribution.

Report information
The Basics
Id:
34091
Status:
new
Priority:
Low/Low

People
Owner:
Nobody in particular
Requestors:
jcw [...] odikia.com
Cc:
AdminCc:

BugTracker
Severity:
(no value)
Broken in:
(no value)
Fixed in:
(no value)



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:

>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




 



This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.