use B::Deparse; package TST; our $var; package main; $VARNAME='$var'; print B::Deparse->new()->coderef2text(eval "sub { $VARNAME }" );
OUTPUT:
{ $TST::var; }
And the rest is silence regex! :)
Cheers Rolf
In reply to Re: Can the fully qualified name of a global variable be determined?
by LanX
in thread Can the fully qualified name of a global variable be determined?
by clueless newbie
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |