[Net-z3950] Illegal seek at LOC

Eli Naeher enaeher at onshored.com
Mon Sep 12 21:04:28 CEST 2005


I am trying a basic Net::Z3950 script, more or less verbatim from the perldocs:

#!/usr/bin/perl -w

use strict;
use Net::Z3950;

my $connection = new Net::Z3950::Connection('z3950.loc.gov', 7090, databaseName => 'voyager') or die $!;

my $results = $connection->search(-ccl => 'au=kernighan and su=unix') or die $!;

print "found " . $results->size() . "records:\n";

my $rec = $results->record(1);
print $rec->render();

This gives me an "Illegal seek at query.pl line 8.", despite the fact the the LOC, on port 7090, with database name 'voyager', works as expected from the yaz command line client. What am I doing wrong?



More information about the Net-z3950 mailing list