Home > Archive > PERL Beginners > September 2007 > Strange debugging question...
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Strange debugging question...
|
|
| Zachary Shay 2007-09-27, 7:01 pm |
| Is there any way to get the name of a variable by knowing its memory
address?
Thanks,
Zach
| |
| Paul Johnson 2007-09-27, 7:01 pm |
| On Thu, Sep 27, 2007 at 01:11:11PM -0400, Zachary Shay wrote:
> Is there any way to get the name of a variable by knowing its memory
> address?
Some hairy XS might get you an 80% solution, but in general, no.
--
Paul Johnson - paul@pjcj.net
http://www.pjcj.net
| |
| Nobull67@Gmail.Com 2007-09-27, 10:01 pm |
| On Sep 27, 6:11 pm, zachary.s...@gmail.com (Zachary Shay) wrote:
> Is there any way to get the name of a variable by knowing its memory
> address?
Not in general in a reasonable time.
Anyhow, how would you know the address of a variable in Perl?
What do you mean by "the name"? An SV in Perl can have any number of
names, including zero.
| |
| Dr.Ruud 2007-09-29, 7:00 pm |
| "Zachary Shay" schreef:
> Is there any way to get the name of a variable by knowing its memory
> address?
Do you consider its ref-value as its memory address?
--
Affijn, Ruud
"Gewoon is een tijger."
|
|
|
|
|