MIME-Version: | 1.0 (Apple Message framework v753) |
X-Spam-Status: | No, hits=-2.6 required=8.0 tests=BAYES_00,HTML_MESSAGE,WEIRD_PORT |
X-Mailer: | Apple Mail (2.753) |
X-Virus-Checked: | Checked by ClamAV on 16.mx.develooper.com |
Content-Type: | multipart/alternative; boundary=Apple-Mail-10--426665917 |
Received: | from x1.develooper.com (x1.develooper.com [63.251.223.170]) by diesel.bestpractical.com (Postfix) with SMTP id F15FF4D81A4 for <bug-Net-Z3950-ZOOM [...] rt.cpan.org>; Fri, 14 Mar 2008 13:01:53 -0400 (EDT) |
Received: | (qmail 16382 invoked from network); 14 Mar 2008 17:01:52 -0000 |
Received: | from x16.dev (10.0.100.26) by x1.dev with QMQP; 14 Mar 2008 17:01:52 -0000 |
Received: | from pyramid-03.kattare.com (HELO pyramid-03.kattare.com) (65.212.180.92) by 16.mx.develooper.com (qpsmtpd/0.43rc1) with ESMTP; Fri, 14 Mar 2008 10:01:40 -0700 |
Received: | from [192.168.1.102] (c-24-5-3-116.hsd1.ca.comcast.net [24.5.3.116]) (authenticated bits=0) by pyramid-03.kattare.com (8.13.8/8.13.6) with ESMTP id m2EGujAp000850 for <bug-Net-Z3950-ZOOM [...] rt.cpan.org>; Fri, 14 Mar 2008 09:56:45 -0700 |
Delivered-To: | cpan-bug+Net-Z3950-ZOOM [...] diesel.bestpractical.com |
Subject: | A missing method warning when running example from documentation. |
Return-Path: | <jcw [...] odikia.com> |
X-Original-To: | bug-Net-Z3950-ZOOM [...] rt.cpan.org |
X-Spam-Check-BY: | 16.mx.develooper.com |
Date: | Fri, 14 Mar 2008 09:56:40 -0700 |
X-Spam-Level: | * |
Message-Id: | <13F8A0E1-0179-41D0-BFF4-46A35AB45BF6 [...] odikia.com> |
To: | bug-Net-Z3950-ZOOM [...] rt.cpan.org |
From: | John Watkins <jcw [...] odikia.com> |
Content-Length: | 0 |
content-type: | text/plain; charset="utf-8"; delsp="yes"; format="flowed" |
Content-Transfer-Encoding: | 7bit |
X-RT-Original-Encoding: | US-ASCII |
Content-Length: | 938 |
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
content-type: | text/html; charset="utf-8" |
Content-Transfer-Encoding: | quoted-printable |
X-RT-Original-Encoding: | ISO-8859-1 |
Content-Length: | 4125 |