From ce02e1846d6a589e0d8a45cf516c3d765efa5a8f Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Mon, 18 Sep 2006 16:30:25 +0000 Subject: [PATCH] Do not attempt to test zero-length targets. --- lib/ZOOM/IRSpy.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ZOOM/IRSpy.pm b/lib/ZOOM/IRSpy.pm index 21b1a0f..06bc931 100644 --- a/lib/ZOOM/IRSpy.pm +++ b/lib/ZOOM/IRSpy.pm @@ -1,4 +1,4 @@ -# $Id: IRSpy.pm,v 1.14 2006-07-27 15:51:05 mike Exp $ +# $Id: IRSpy.pm,v 1.15 2006-09-18 16:30:25 mike Exp $ package ZOOM::IRSpy; @@ -74,7 +74,7 @@ sub targets { $this->log("irspy", "setting explicit list of targets '$targetList'"); $this->{allrecords} = 0; - my @targets = split /\s+/, $targetList; + my @targets = grep { $_ ne "" } split /\s+/, $targetList; my @qlist; foreach my $target (@targets) { my($host, $port, $db, $newtarget) = _parse_target_string($target); -- 1.7.10.4