projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
1. fixed problem with missing DXDebug in DXProt.
[spider.git]
/
perl
/
DXChannel.pm
diff --git
a/perl/DXChannel.pm
b/perl/DXChannel.pm
index 7319344caeb51fa8bda7770f5c12f397f685e7c6..8f641a443c5d497dedb5322a077da674bb986a12 100644
(file)
--- a/
perl/DXChannel.pm
+++ b/
perl/DXChannel.pm
@@
-156,12
+156,11
@@
sub send_now
my $conn = $self->{conn};
my $sort = shift;
my $call = $self->{call};
my $conn = $self->{conn};
my $sort = shift;
my $call = $self->{call};
- my $line;
- for
each $line
(@_) {
- chomp
$line
;
- $conn->send_now("$sort$call|$
line
") if $conn;
- dbg('chan', "-> $sort $call $
line
") if $conn;
+ for (@_) {
+ chomp;
+ $conn->send_now("$sort$call|$
_
") if $conn;
+ dbg('chan', "-> $sort $call $
_
") if $conn;
}
$self->{t} = time;
}
}
$self->{t} = time;
}
@@
-174,12
+173,11
@@
sub send # this is always later and always data
my $self = shift;
my $conn = $self->{conn};
my $call = $self->{call};
my $self = shift;
my $conn = $self->{conn};
my $call = $self->{call};
- my $line;
- for
each $line
(@_) {
- chomp
$line
;
- $conn->send_later("D$call|$
line
") if $conn;
- dbg('chan', "-> D $call $
line
") if $conn;
+ for (@_) {
+ chomp;
+ $conn->send_later("D$call|$
_
") if $conn;
+ dbg('chan', "-> D $call $
_
") if $conn;
}
$self->{t} = time;
}
}
$self->{t} = time;
}