Perl Monk, Perl Meditation | |
PerlMonks |
Re: Getting a variable name from a referenceby MZSanford (Curate) |
on Mar 05, 2002 at 13:46 UTC ( [id://149361]=note: print w/replies, xml ) | Need Help?? |
Let me start by saying, this should never be done. never. Ok, that aside, i thought of a way that might work. You could loop through the %main:: hash, and compare the values of each name-spaces hash variable. Something like this (untested code and idea):
Please note, i do not condone this behavior. from the frivolous to the serious
In Section
Seekers of Perl Wisdom
|
|