Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
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?
[Discipulus]: but i'm also animalist, so i' hirted by 1nickt's sig: The way forward always starts with a mammal test... grin..
[erix]: I might if I did remember. It's probably somewhere in the site docs
[uhClem]: I don't favor that sort of thing around here but the place for our politics is wherever we live.
[uhClem]: And besides, the objection to it was off-topic.
[Discipulus]: 1nickt hide signature is a positive action; i think is not a solution here
[erix]: my objection to sigs is just that they take screen space. ( Some monks would have *several* slogans underneath a 1-liner reply )

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (11)
As of 2017-06-22 12:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (519 votes). Check out past polls.