Just an idea, don't know if it might work:
You could use PadWalker to sniff your caller's lexicals and see if the reference address of any of them is equal to the reference you've got.
In reply to Re: get name of lexical variable
by moritz
in thread get name of lexical variable
by khwilliamson
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |