projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix the displayed version no.
[spider.git]
/
cmd
/
show
/
var.pl
diff --git
a/cmd/show/var.pl
b/cmd/show/var.pl
index eee2432feddf5321eefa9c388d6e97fea27f8e14..f0149cce6236eb5f56f76fc7b03bca773efaac29 100644
(file)
--- a/
cmd/show/var.pl
+++ b/
cmd/show/var.pl
@@
-9,7
+9,7
@@
#
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;
@@
-20,11
+20,7
@@
foreach $f (@f) {
my @in;
push @in, (eval $f);
if (@in) {
my @in;
push @in, (eval $f);
if (@in) {
- my $dd = Data::Dumper->new([ \@in ], [ "$f" ]);
- $dd->Indent(1);
- $dd->Quotekeys(0);
- my $s = $dd->Dumpxs;
- push @out, $s;
+ 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);