Hello,
I got the whole dope about referencing and dereferncing in the Perl
documentation which comes with Active Perl.
Peter:: Thanks again.
Regards,
Sharat
>From: "Sharat Hegde" <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>CC: [EMAIL PROTECTED]
>Subject: RE: List
>I initiatize the list with:
> @MainList = ();
Looks good.
>To add elements, I am doing:
> push(@MainList, [%ElementAssocArray]);
Not quite right. Loose the square brackets and take a reference to the
hash.
push (@MainList, \%ElementAssocArray);
>To access each element (for example the
[EMAIL PROTECTED]>
>To: "Sharat Hegde" <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]>
>Subject: RE: List of Associative Arrays
>Date: Mon, 17 Dec 2001 20:56:45 -0800
>
>
> >I initiatize the list with:
> > @MainList = ();
>
>Looks good.
>
> &