projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix new swearing code.
[spider.git]
/
cmd
/
show
/
var.pl
diff --git
a/cmd/show/var.pl
b/cmd/show/var.pl
index b09193c29bc306f71dffd5822de649a5f77cf409..f68577f85741e90460f4ca1f7be6070dd07dd69b 100644
(file)
--- a/
cmd/show/var.pl
+++ b/
cmd/show/var.pl
@@
-9,16
+9,18
@@
#
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;
my @out;
foreach $f (@f) {
my @f = split /\s+/, $line;
my $f;
my @out;
foreach $f (@f) {
- print "\$f = $f\n";
- my $var = eval "$f";
- if ($var) {
- my $dd = Data::Dumper->new([ $var ], [ "$f" ]);
+# print "\$f = $f\n";
+ 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;