$var = { }

What does this means

$var = { }
ankugoe7 [ Do, 03 April 2008 13:08 ] [ ID #1935049 ]

Re: $var = { }

"ankugoe7 [at] gmail.com" <ankugoe7 [at] gmail.com> writes:

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

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

//Makholm
Peter Makholm [ Do, 03 April 2008 13:12 ] [ ID #1935050 ]

Re: $var = { }

Peter Makholm <peter [at] makholm.net> wrote:
>"ankugoe7 [at] gmail.com" <ankugoe7 [at] 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
jurgenex [ Do, 03 April 2008 14:51 ] [ ID #1935053 ]

Re: $var = { }

On 2008-04-03, ankugoe7 [at] gmail.com <ankugoe7 [at] 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
Chris Mattern [ Fr, 04 April 2008 21:03 ] [ ID #1935840 ]
Perl » comp.lang.perl.misc » $var = { }

Vorheriges Thema: separating substitutions from an embedded perl in a ksh script
Nächstes Thema: FAQ 8.19 Why doesn't my sockets program work under System V (Solaris)? What does the error message