projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
get the basic (r)cmd thing working.
[spider.git]
/
perl
/
DXXml.pm
diff --git
a/perl/DXXml.pm
b/perl/DXXml.pm
index 2d83e16bb61e0d6f4a16c1f86b785b48c9be59cb..280d19ced31691e35612880b3b48ee086e297470 100644
(file)
--- a/
perl/DXXml.pm
+++ b/
perl/DXXml.pm
@@
-39,7
+39,7
@@
sub new
{
my $pkg = shift;
my $class = ref $pkg || $pkg;
{
my $pkg = shift;
my $class = ref $pkg || $pkg;
- my $self = bless{
@_
}, $class;
+ my $self = bless{}, $class;
while (@_) {
my $key = shift;
my $val = shift;
while (@_) {
my $key = shift;
my $val = shift;
@@
-271,22
+271,10
@@
sub route
$dxchan->send($self->toxml);
} elsif ($dxchan->is_node) {
my $ref = $self->topcxx($dxchan);
$dxchan->send($self->toxml);
} elsif ($dxchan->is_node) {
my $ref = $self->topcxx($dxchan);
- if (ref $ref) {
- for (@$ref) {
- $dxchan->send($_);
- }
- } else {
- $dxchan->send($ref);
- }
+ $dxchan->send($ref);
} else {
my $ref = $self->tocmd($dxchan);
} else {
my $ref = $self->tocmd($dxchan);
- if (ref $ref) {
- for (@$ref) {
- $dxchan->send($_);
- }
- } else {
- $dxchan->send($ref);
- }
+ $dxchan->send($ref);
}
}
}
}