[Kochi-pm] Access Memory Location using Perl

Bharathiraja P pbrthemaster at gmail.com
Wed Aug 25 00:10:17 PDT 2010


I have a hash reference and if we print the reference variable we will get
an address. I want to access the hash using that address.

For ex. if $hash is a hash reference. If we print $hash we will get
something like HASH(0x91498b8). I want to access the hash using the address
HASH(0x91498b8).

2010/8/25 Varghese Chacko <vctheguru at gmail.com>

>  How do you get the memory address without any type info like Array/Hash or
> Scalar? Are you trying to access ports?
>
> --VC
>
> Bharathiraja P wrote:
>
> Hi,
>
>           Can you tell how can I map memory location to a variable. For ex.
> I have a memory address for a hash reference say 0x23413. Is it possible to
> access the hash using the memory address?
>
> --
> Bharathiraja
>
> ------------------------------
>
> _______________________________________________
> Kochi-pm mailing listKochi-pm at pm.orghttp://mail.pm.org/mailman/listinfo/kochi-pm
>
>
>
> --
> Regards
> Varghese Chacko
>
>
> =========================================================
> Unless you can create the WHOLE universe in 5 days, then
> perhaps giving "advice" to God, isn't such a good idea.
>
>
> _______________________________________________
> Kochi-pm mailing list
> Kochi-pm at pm.org
> http://mail.pm.org/mailman/listinfo/kochi-pm
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/kochi-pm/attachments/20100825/3a395d0e/attachment.html>


More information about the Kochi-pm mailing list