X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=samples%2Fzoom%2Fzoomtst3.pl;h=0606ef2233c950f1069f564cf2a1e128fceb037a;hb=fc7deb12a6edf1333b40f9176cd929489a7b39df;hp=a1398ac84e39ef028c13e3c464b5d8765c1c8dc9;hpb=e3c73de08407998922e88f2aaec287a92f1496ce;p=ZOOM-Perl-moved-to-github.git diff --git a/samples/zoom/zoomtst3.pl b/samples/zoom/zoomtst3.pl index a1398ac..0606ef2 100644 --- a/samples/zoom/zoomtst3.pl +++ b/samples/zoom/zoomtst3.pl @@ -1,7 +1,7 @@ -# $Id: zoomtst3.pl,v 1.2 2006-04-07 11:25:58 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 lx2.loc.gov:210/LCDB z3950.indexdata.com:210/gils endeavor.flo.org:7090/Voyager mineral use strict; use warnings; @@ -9,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; } @@ -40,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