Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

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

by LanX (Chancellor)
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 taking refuge in the Monastery: (10)
As of 2016-09-28 13:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (531 votes). Check out past polls.