May 5, 2013, 8:45 PM
Post #1 of 4
Greetings again. Wow, twice in one day!
[Solved] Print references
As a curiosity that has come up in debugging, I would like to sometimes print the value of a reference, not the object it points to. When I'm int he debugger and I have a reference to an array, like I can type and get a hex value of some sort. But when I try to do this for an object reference I get a complaint about no method. Now that message makes some sense because, normally, when when someone wants says they *do* mean to display the contents of said object. (HMMmm, I haven't tried it for an unblessed hash.)
Similarly, if I want to see if to object references are referencing the same object, I might try: but I will get a very similar complaint, for the same reason as with the print command.
So how *do* I display or compare references as a scalar quantity?
-- Rasputin Paskudniak (In perpetual pursuit of undomesticated, semi-aquatic avians)
(This post was edited by rpaskudniak on May 7, 2013, 8:20 PM)