At 13:31 08/09/2003, Xu, Qiang (XSSC SGP) wrote:
Hi, all:
If @arr is an array, and $rr is a reference to it, that is, $rr = [EMAIL PROTECTED];
When I dereference the array, shall I write @$rr, or @{$rr}?
Either - it's up to you.
Similarly, if %hsh is an hash, and $rhsh is a reference to it, shall
Message -
From: "Xu, Qiang (XSSC SGP)" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, September 08, 2003 12:31 PM
Subject: Perl dereference methods
> Hi, all:
>
> If @arr is an array, and $rr is a reference to it, that is, $rr = [EMAIL PROTECTED];
>
Hi, all:
If @arr is an array, and $rr is a reference to it, that is, $rr = [EMAIL PROTECTED];
When I dereference the array, shall I write @$rr, or @{$rr}?
Similarly, if %hsh is an hash, and $rhsh is a reference to it, shall I use
%$rhsh, or %{$rhsh) to dereference the hash?
I have seen both u