Amit wrote:

 

>Hello all,
>  I am a newbee in perl. Just wanted some guidance so as to how to implement multidimensional arrays in perl. I have >to create an 2-d array with 26*26 of all the english alphabets so that for each row and column i can have a partiulcar >value like a to a =1
>b to a=2;
>I am just not getting how to implement this.
>Can someone suggest something.
>Thanks
>Amit.

 

<sermon>

Best advice: Learn from wizards.  

Example: check out O'Reilly books, (such as 'Perl Cookbook');

   look up "multidimensional arrays",

   then do what they do.

 </sermon>

 

<quote from said book>

"Complex (multilevel) data structures in Perl are always put together using references.  What appear to be 'two-dimensional arrays' or 'arrays of arrays' are always implemented as arrays of array references, in the same way that two-dimensional arrays in C can be arrays of pointers."

</quote>

 

HTH

_______________________________________________
Perl-Win32-Users mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to