in reply to How to get the variable or function address in memory?

Generally with perl, just having the reference is enough. However, if you really think you need it then you can stringify the reference (sounds like what you have done already) to find out what type of reference it is (not the best way to do so, see ref) and where in perl's memory it resides.

  • Comment on Re: How to get the variable or function address in memory?

Replies are listed 'Best First'.
Re^2: How to get the variable or function address in memory?
by ihb (Deacon) on Nov 02, 2004 at 12:37 UTC

    An even better way than using ref() is to use &reftype and &refaddr in Scalar::Util.

    ihb

    See perltoc if you don't know which perldoc to read!
    Read argumentation in its context!