![]() |
|
good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
How to get the variable or function address in memory?by hash (Scribe) |
on Nov 02, 2004 at 04:00 UTC ( #404504=perlquestion: print w/replies, xml ) | Need Help?? |
hash has asked for the wisdom of the Perl Monks concerning the following question:
FOr example in C code: addr_ptr = argv[1]; I get the address: ./getaddrvar HOME HOME is stored at address 0xbffffeef So how can i do this in perl? I`ve read something about: $b = \$a; But the hexadecimal`s value has only 7 digits, on the oher hand using the C code above i got 8! Where is the problem? Thank you all for helping me.
Back to
Seekers of Perl Wisdom
|
|