projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
updated the windows links and stuff in the intro
[spider.git]
/
cmd
/
show
/
var.pl
diff --git
a/cmd/show/var.pl
b/cmd/show/var.pl
index 3f0715713a4f64c20d71ea209dd527a16731259c..eee2432feddf5321eefa9c388d6e97fea27f8e14 100644
(file)
--- a/
cmd/show/var.pl
+++ b/
cmd/show/var.pl
@@
-10,15
+10,17
@@
my ($self, $line) = @_;
return (1, $self->msg('e5')) if $self->priv < 9 || $self->remotecmd;
my ($self, $line) = @_;
return (1, $self->msg('e5')) if $self->priv < 9 || $self->remotecmd;
+return (1, $self->msg('e9')) unless $line;
my @f = split /\s+/, $line;
my $f;
my @out;
foreach $f (@f) {
# print "\$f = $f\n";
my @f = split /\s+/, $line;
my $f;
my @out;
foreach $f (@f) {
# print "\$f = $f\n";
- my $var = eval "$f";
- if (defined $var) {
- my $dd = Data::Dumper->new([ $var ], [ "$f" ]);
+ 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;
$dd->Indent(1);
$dd->Quotekeys(0);
my $s = $dd->Dumpxs;