X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=samples%2Fnet-z3950-zoom%2Fasync.pl;h=08e080077ced9e5d884186412de0d25006b4a7d2;hb=ecc0ec8f7c966c6566128351e46b5e0ba92d17d9;hp=9341168119fef5c01022ae2e32675b78dc710fa6;hpb=274f20e3a7cdc56cf22657598c5b94d6baaa8358;p=ZOOM-Perl-moved-to-github.git diff --git a/samples/net-z3950-zoom/async.pl b/samples/net-z3950-zoom/async.pl index 9341168..08e0800 100644 --- a/samples/net-z3950-zoom/async.pl +++ b/samples/net-z3950-zoom/async.pl @@ -1,9 +1,7 @@ -# $Id: async.pl,v 1.2 2006-04-07 12:36:34 mike Exp $ -# # See ../README for a description of this program. # perl -I../../blib/lib -I../../blib/arch zoomtst3.pl [...] # for example: -# perl -I../../blib/lib -I../../blib/arch async.pl z3950.loc.gov:7090/Voyager bagel.indexdata.com:210/gils endeavor.flo.org:7090/Voyager mineral +# perl -I../../blib/lib -I../../blib/arch async.pl z3950.loc.gov:7090/Voyager z3950.indexdata.com:210/gils endeavor.flo.org:7090/Voyager mineral use strict; use warnings; @@ -11,7 +9,7 @@ use Net::Z3950::ZOOM; if (@ARGV < 2) { print STDERR "Usage: $0 target1 target2 ... targetN query\n"; - print STDERR " eg. $0 bagel.indexdata.dk/gils localhost:9999 fish\n"; + print STDERR " eg. $0 z3950.indexdata.dk/gils localhost:9999 fish\n"; exit 1; } @@ -69,14 +67,13 @@ if ($i != 0) { # Go through all records at target $size = 10 if $size > 10; for (my $pos = 0; $pos < $size; $pos++) { - my $len = 0; # length of buffer rec print "$tname: fetching ", $pos+1, " of $size\n"; my $tmp = Net::Z3950::ZOOM::resultset_record($r[$i], $pos); if (!defined $tmp) { print "$tname: can't get record ", $pos+1, "\n"; next; } - my $rec = Net::Z3950::ZOOM::record_get($tmp, "render", $len); + my $rec = Net::Z3950::ZOOM::record_get($tmp, "render"); if (!defined $rec) { print "$tname: can't render record ", $pos+1, "\n"; next;