RE: List of Associative Arrays

2001-12-18 Thread Sharat Hegde
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

RE: List of Associative Arrays

2001-12-18 Thread Peter Cornelius
>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

RE: List of Associative Arrays

2001-12-17 Thread Sharat Hegde
[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. > > &