X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=samples%2Fzoom%2Fzoomtst3.pl;h=3e76be428389011efb8f82f944a4c296e6d233d6;hb=dfd8c2e37c9b60dc45001aac436cb07f597a745f;hp=146ce0e413c9b016c03cece2209ac451c3dfde00;hpb=28b5e4565a43c654751d1a3f34c32e3b259694a5;p=ZOOM-Perl-moved-to-github.git diff --git a/samples/zoom/zoomtst3.pl b/samples/zoom/zoomtst3.pl index 146ce0e..3e76be4 100644 --- a/samples/zoom/zoomtst3.pl +++ b/samples/zoom/zoomtst3.pl @@ -1,9 +1,7 @@ -# $Id: zoomtst3.pl,v 1.3 2006-04-07 12:03:27 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 zoomtst3.pl z3950.loc.gov:7090/Voyager bagel.indexdata.com:210/gils mineral +# perl -I../../blib/lib -I../../blib/arch zoomtst3.pl lx2.loc.gov:210/LCDB_MARC8 z3950.indexdata.com:210/gils endeavor.flo.org:7090/Voyager mineral use strict; use warnings; @@ -11,7 +9,7 @@ use 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; } @@ -42,7 +40,11 @@ for (my $i = 0; $i < $n; $i++) { while ((my $i = ZOOM::event(\@z)) != 0) { my $ev = $z[$i-1]->last_event(); print("connection ", $i-1, ": event $ev (", ZOOM::event_str($ev), ")\n"); - ### It would be nice to display results as they come in. + # It would be nice to display results as they come in, but the + # ability to do so is dependent on the END event, which was + # introduced only in YAZ 2.1.17. If you have a sufficiently new + # YAZ, please use the alternative "async.pl", which is similar to + # this program except in its asynchronous display. } # No more to be done. Inspect results