From: Mike Taylor Date: Mon, 18 Sep 2006 16:30:25 +0000 (+0000) Subject: Do not attempt to test zero-length targets. X-Git-Tag: CPAN-v1.02~54^2~1058 X-Git-Url: http://git.indexdata.com/?p=irspy-moved-to-github.git;a=commitdiff_plain;h=ce02e1846d6a589e0d8a45cf516c3d765efa5a8f;ds=sidebyside Do not attempt to test zero-length targets. --- 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);