Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^5: Inspecting the name of a variable

by remiah (Hermit)
on Sep 03, 2012 at 01:18 UTC ( #991342=note: print w/ replies, xml ) Need Help??


in reply to Re^4: Inspecting the name of a variable
in thread Inspecting the name of a variable

I saw it. It used the same module, PadWalker.

With -d debug, when I type V at for loop, I see "$x = 42" in the list. It seems there is some way for printing variable names...

I know nothing for perlguts,and don't understand what is Alias here ...
Hope you get some hints from superior monks.

regrads.


Comment on Re^5: Inspecting the name of a variable
Re^6: Inspecting the name of a variable
by LanX (Canon) on Sep 03, 2012 at 09:09 UTC
    The problem is that a variable (i.e. the refrence) can be bound to multiple names.

    So using PadWalker doesn't really help... but I think I have a better idea how to solve it. :)

    Cheers Rolf

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2014-12-27 13:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (177 votes), past polls