Given what I already said (it is unwise) and good modules suggested as symbol table inspector ie
Data::Dumper::Names which uses
PadWalker you probably mean something like the following (working for scalar, must be modified for arrays and hashes)?
perl -e " my $x = 15; print map {$_.' = '.eval eval{$_} } '$x' "
$x = 15
Again: this leads you on a wrong path, might be worth to know but not to be used
L*
There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.