I have some syntax questions in regards to populating/iterating through hashes/arrays.
I've been writing PHP for about 4 years, and haven't written any PERL in about the same time.... i'd like to create a numerically indexed associtative array, each key will contain an array of three elements like: $array[0] = ("element0", "element1", "element2"); $array[1] = ("element0", "element1", "element2"); $array[3] = ("element0", "element1", "element2"); etc. And then i need to loop through this array and do various things with the elements. so, now to my questions. In a For Loop, I'm trying to build the array like: %errors[$i] = ($1,$2,$3); is this correct/good practice? When this completes, i do have an array, with a size of 60...but i can't figure out how to loop through it. The structure above meets my needs, but i've built it based on my knowledge of how PHP deals with arrays, and knowing the PERL handles them differently, i may need to consider building it an alternative way. i've seen many array tutorials, but none of them, that i've found so far, get into arrays like the above, so i assume i'm going about it wrong, or looking in the wrong place. Thanks for any help you may be able to give. It's going to take my a while to remember everything that i've forgotten... Jeff -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>