Beefy Boxes and Bandwidth Generously Provided by pair Networks Joe
"be consistent"
 
PerlMonks  

Re: Can the fully qualified name of a global variable be determined?

by LanX (Abbot)
on Jan 24, 2013 at 14:44 UTC ( #1015180=note: print w/ replies, xml ) Need Help??


in reply to Can the fully qualified name of a global variable be determined?

Since B::Deparse can do it, I suppose it's only a matter of how to access the optree and not if it's possible at all.

lanx@nc10-ubuntu:~$ perl -MO=Deparse package TST; our $var; package main; print $var __END__ package TST; our $var; package main; print $TST::var;

AT least this works w/o parsing all STASHes.

Cheers Rolf


Comment on Re: Can the fully qualified name of a global variable be determined?
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1015180]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (9)
As of 2014-04-18 03:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (461 votes), past polls