in reply to Re^2: how to print out a variable name and its value
in thread how to print out a variable name and its value
Would
do the trick?# Warning! Code not tested! $_=eval($name); print(defined $_ ? ("$name=[$_]") : "$name is undefined");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: how to print out a variable name and its value
by perlfan99 (Sexton) on Jul 30, 2008 at 07:30 UTC | |
by rovf (Priest) on Jul 30, 2008 at 08:23 UTC |