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

$var = { }

0 views
Skip to first unread message

anku...@gmail.com

unread,
Apr 3, 2008, 7:08:25 AM4/3/08
to
What does this means

$var = { }

Peter Makholm

unread,
Apr 3, 2008, 7:12:13 AM4/3/08
to
"anku...@gmail.com" <anku...@gmail.com> writes:

> What does this means
>
> $var = { }

This assigns an empty hashref to $var. Read the perlref documentation.

//Makholm

Jürgen Exner

unread,
Apr 3, 2008, 8:51:37 AM4/3/08
to
Peter Makholm <pe...@makholm.net> wrote:
>"anku...@gmail.com" <anku...@gmail.com> writes:
>
>> What does this means
>>
>> $var = { }
>
>This assigns an empty hashref to $var.

Ahemmm, it's not the reference that is empty but the hash that it points
to.

jue

Chris Mattern

unread,
Apr 4, 2008, 3:03:36 PM4/4/08
to
On 2008-04-03, anku...@gmail.com <anku...@gmail.com> wrote:
> What does this means
>
> $var = { }

It means $var gets assigned a reference to an anonymous, empty hash.


--
Christopher Mattern

NOTICE
Thank you for noticing this new notice
Your noticing it has been noted
And will be reported to the authorities

0 new messages