Remove extraneous and misleading old CVS IDs
[ZOOM-Perl-moved-to-github.git] / samples / net-z3950-zoom / async.pl
index 9341168..08e0800 100644 (file)
@@ -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 <t1> [...] <tN> <query>
 # 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;