Re: Perl dereference methods

2003-09-08 Thread Lee Goddard
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

Re: Perl dereference methods

2003-09-08 Thread Martin Moss
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]; >

Perl dereference methods

2003-09-08 Thread Xu, Qiang (XSSC SGP)
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