Would
do the trick?# Warning! Code not tested! $_=eval($name); print(defined $_ ? ("$name=[$_]") : "$name is undefined");
In reply to Re^3: how to print out a variable name and its value
by rovf
in thread how to print out a variable name and its value
by perlfan99
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |