P is for Practical | |
PerlMonks |
Re: Displaying a variable's name and value in a subby ciderpunx (Vicar) |
on Feb 14, 2011 at 23:16 UTC ( [id://888091]=note: print w/replies, xml ) | Need Help?? |
But you almost certainly shouldn't be doing that, if you really care about the name of your variable pass it as a parameter ie. show('$b',$b);
-- Linux, perl, punk rock, cider: charlieharvey.org.uk.
In Section
Seekers of Perl Wisdom
|
|