projects
/
irspy-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
73eab98
)
Do not attempt to test zero-length targets.
author
Mike Taylor
<mike@indexdata.com>
Mon, 18 Sep 2006 16:30:25 +0000
(16:30 +0000)
committer
Mike Taylor
<mike@indexdata.com>
Mon, 18 Sep 2006 16:30:25 +0000
(16:30 +0000)
lib/ZOOM/IRSpy.pm
patch
|
blob
|
history
diff --git
a/lib/ZOOM/IRSpy.pm
b/lib/ZOOM/IRSpy.pm
index
21b1a0f
..
06bc931
100644
(file)
--- 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;
package ZOOM::IRSpy;
@@
-74,7
+74,7
@@
sub targets {
$this->log("irspy", "setting explicit list of targets '$targetList'");
$this->{allrecords} = 0;
$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);
my @qlist;
foreach my $target (@targets) {
my($host, $port, $db, $newtarget) = _parse_target_string($target);