On Tuesday 19 April 2005 22:43, Octavian Rasnita wrote:
> push($hash{var1}, 'new_element');
>
> But it gives an error telling that the first parameter of the push
> function must be an array and not a hash element.
I use:
push @{$hash{var1}}, 'new_element';
which dereferences the hash element and turns it back into the array that
it points to.-- Robin <[EMAIL PROTECTED]> JabberID: <[EMAIL PROTECTED]> Hostes alienigeni me abduxerunt. Qui annus est? PGP Key 0xA99CEB6D = 5957 6D23 8B16 EFAB FEF8 7175 14D3 6485 A99C EB6D
pgpw7TcFRef0A.pgp
Description: PGP signature
