-# $Id: zoomtst1.pl,v 1.1 2005-10-12 11:53:11 mike Exp $
-#
# See ../README for a description of this program.
# perl -I../../blib/lib -I../../blib/arch zoomtst1.pl <target> <query>
if (@ARGV != 2) {
print STDERR "Usage: $0 target query\n";
- print STDERR " eg. $0 bagel.indexdata.dk/gils computer\n";
+ print STDERR " eg. $0 z3950.indexdata.dk/gils computer\n";
exit 1;
}
if $errcode != 0;
my $n = Net::Z3950::ZOOM::resultset_size($rs);
+print "Query '$query' found $n records\n";
+
for my $i (0..$n-1) {
my $rec = Net::Z3950::ZOOM::resultset_record($rs, $i);
print "=== Record ", $i+1, " of $n ===\n";
- my $dummy = 0;
- print Net::Z3950::ZOOM::record_get($rec, "render", $dummy);
+ print Net::Z3950::ZOOM::record_get($rec, "render");
}
Net::Z3950::ZOOM::resultset_destroy($rs);