http://www.perlmonks.org?node_id=991328


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

Thats where I started, but if you look into Ovid's code you will see that he's only inspecting lexical variables.

Cheers Rolf

  • Comment on Re^4: Inspecting the name of a variable

Replies are listed 'Best First'.
Re^5: Inspecting the name of a variable
by remiah (Hermit) on Sep 03, 2012 at 01:18 UTC

    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.

      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