Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

What does $$ mean ?

4 views
Skip to first unread message

*Shaji Kalidasan*

unread,
May 17, 2013, 8:39:10 AM5/17/13
to Perl Beginners
Greetings,

What does this mean

[CODE1]
keys %{$$disk_type_ref{$pool}};
[/CODE1]

Moreover, what does $$ mean here

[CODE2]
@{$$disk_type_ref{$pool}{$med_value}}
[/CODE2]

What data structures does the above things denote? Any pointers will be of great help.

Thanking you in advance.

best,
Shaji
-------------------------------------------------------------------------------
Your talent is God's gift to you. What you do with it is your gift back to God.
-------------------------------------------------------------------------------

Dr.Ruud

unread,
May 17, 2013, 8:47:19 AM5/17/13
to begi...@perl.org
On 17/05/2013 14:39, *Shaji Kalidasan* wrote:

> [CODE1]
> keys %{$$disk_type_ref{$pool}};
> [/CODE1]
>
> Moreover, what does $$ mean here

%{$$disk_type_ref{$pool}};

can also be written as

%{ $disk_type_ref->{ $pool } };

See further perldsc.

> -------------------------------------------------------------------------------
> Your talent is God's gift to you. What you do with it is your gift back
> to God.
> -------------------------------------------------------------------------------

https://www.facebook.com/pages/David-Bowie-is-GOD/133491090062327

--
Ruud

Frank K.

unread,
May 17, 2013, 10:03:06 AM5/17/13
to begi...@perl.org
Gosh, I always thought "$$" is what you have to pay when you get a divorce <vbg>.. flk k
--
To unsubscribe, e-mail: beginners-...@perl.org
For additional commands, e-mail: beginne...@perl.org
http://learn.perl.org/



*Shaji Kalidasan*

unread,
May 18, 2013, 12:52:45 AM5/18/13
to Dr.Ruud, begi...@perl.org
Dr. Ruud,

Thank you very much for your kind explanation. The pointers you suggested is very handy in understanding the complex data structures.
 
best,
Shaji
-------------------------------------------------------------------------------
Your talent is God's gift to you. What you do with it is your gift back to God.
-------------------------------------------------------------------------------

From: Dr.Ruud <rvtol+...@isolution.nl>
To: begi...@perl.org
Sent: Friday, 17 May 2013 6:17 PM

Subject: Re: What does $$ mean ?
0 new messages