Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

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

by LanX (Bishop)
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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (7)
As of 2017-11-20 10:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (286 votes). Check out past polls.

    Notices?