projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
wip
[spider.git]
/
cmd
/
show
/
var.pl
diff --git
a/cmd/show/var.pl
b/cmd/show/var.pl
index de35e55fecd8198de5783a0be81904c8818b994f..e4919cbded381f1e13ed66be38b09ff51cc84ed6 100644
(file)
--- a/
cmd/show/var.pl
+++ b/
cmd/show/var.pl
@@
-5,11
+5,11
@@
#
# Copyright (c) 1999 - Dirk Koopman G1TLH
#
#
# Copyright (c) 1999 - Dirk Koopman G1TLH
#
-#
$Id$
+#
#
my ($self, $line) = @_;
#
my ($self, $line) = @_;
-return (1, $self->msg('e5')) if $self->priv < 9 || $self->remotecmd;
+return (1, $self->msg('e5')) if $self->priv < 9 || $self->remotecmd
|| $self->inscript
;
return (1, $self->msg('e9')) unless $line;
my @f = split /\s+/, $line;
my $f;
return (1, $self->msg('e9')) unless $line;
my @f = split /\s+/, $line;
my $f;
@@
-19,12
+19,8
@@
foreach $f (@f) {
# print "\$f = $f\n";
my @in;
push @in, (eval $f);
# print "\$f = $f\n";
my @in;
push @in, (eval $f);
- if (defined @in) {
- my $dd = Data::Dumper->new([ @in ], [ "$f" ]);
- $dd->Indent(1);
- $dd->Quotekeys(0);
- my $s = $dd->Dumpxs;
- push @out, $s;
+ if (@in) {
+ push @out, "$f = ". dd(\@in);
Log('DXCommand', $self->call . " show/var $f");
} else {
push @out, $@ ? $@ : $self->msg('e3', 'show/var', $f);
Log('DXCommand', $self->call . " show/var $f");
} else {
push @out, $@ ? $@ : $self->msg('e3', 'show/var', $f);