X-Git-Url: http://sru.miketaylor.org.uk/?a=blobdiff_plain;f=samples%2Fzoom%2Fzoomtst1.pl;h=c2b7f56a79a617bfe10af5c6b4b0694a621196f4;hb=8478131197998e23055811b971c2f3424a4f7fb8;hp=2e3e0b30f11c7d97bc0a7d909f4f8be3902d04a8;hpb=7b9092bd6bc89db1779ddb625e2425f445935cdf;p=ZOOM-Perl-moved-to-github.git diff --git a/samples/zoom/zoomtst1.pl b/samples/zoom/zoomtst1.pl index 2e3e0b3..c2b7f56 100644 --- a/samples/zoom/zoomtst1.pl +++ b/samples/zoom/zoomtst1.pl @@ -1,4 +1,4 @@ -# $Id: zoomtst1.pl,v 1.4 2006-11-02 17:48:26 mike Exp $ +# $Id: zoomtst1.pl,v 1.5 2007-08-17 11:08:38 mike Exp $ # # 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"; +if (@ARGV < 2 || @ARGV %2 == 1) { + print STDERR "Usage: $0 target query [