projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add uref for call in edu
[spider.git]
/
cmd
/
show
/
var.pl
diff --git
a/cmd/show/var.pl
b/cmd/show/var.pl
index de35e55fecd8198de5783a0be81904c8818b994f..f68577f85741e90460f4ca1f7be6070dd07dd69b 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;
@@
-19,8
+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" ]);
+ if (@in) {
+ my $dd = Data::Dumper->new([
\
@in ], [ "$f" ]);
$dd->Indent(1);
$dd->Quotekeys(0);
my $s = $dd->Dumpxs;
$dd->Indent(1);
$dd->Quotekeys(0);
my $s = $dd->Dumpxs;