X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fshow%2Fvar.pl;h=eee2432feddf5321eefa9c388d6e97fea27f8e14;hb=0a9f4ecdeafc3212539009b96c64baa977555454;hp=de35e55fecd8198de5783a0be81904c8818b994f;hpb=9332c9bb2ddb7832ef60b8c2813d5c68a80f56ab;p=spider.git diff --git a/cmd/show/var.pl b/cmd/show/var.pl index de35e55f..eee2432f 100644 --- a/cmd/show/var.pl +++ b/cmd/show/var.pl @@ -19,8 +19,8 @@ foreach $f (@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;