X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=samples%2Fzoom%2Fzoomtst1.pl;h=6221488bb78a990aae267a5d16fef9c5d320472a;hb=56f58a1e6f21e71facf27d29d216bca76e2d0d05;hp=01f9bd5fc49f4ce2b2e4567e9015b198ae296e90;hpb=22ba4cea82444cfaab55ba4b787d909d9ac2d307;p=ZOOM-Perl-moved-to-github.git diff --git a/samples/zoom/zoomtst1.pl b/samples/zoom/zoomtst1.pl index 01f9bd5..6221488 100644 --- a/samples/zoom/zoomtst1.pl +++ b/samples/zoom/zoomtst1.pl @@ -1,5 +1,5 @@ -# $Id: zoomtst1.pl,v 1.3 2005-10-12 14:35:23 mike Exp $ -# +#!/usr/bin/perl -w + # See ../README for a description of this program. # perl -I../../blib/lib -I../../blib/arch zoomtst1.pl @@ -7,16 +7,23 @@ use strict; use warnings; use ZOOM; -if (@ARGV != 2) { - print STDERR "Usage: $0 target query\n"; - print STDERR " eg. $0 bagel.indexdata.dk/gils computer\n"; +if (@ARGV < 2 || @ARGV %2 == 1) { + print STDERR "Usage: $0 target query [