Prasanthi Tenneti wrote: > > In my prog ,I have 6 different arrays.And all first elemnts should do something.ANd >all 2nd elements in arrays should do something and so on . > Iam unable to write code in perl for this.PLs help me.
Let's assume, the 6 different arrays are declared as array1 .. array6. my @array1 = ...; ... my @array6 = ...; Let's create a list of references to the 6 arrays. my @arraylist = (\@array1, \@array2, \@array3, \@array4, \@array5, \@array6); So and now let's print all first elements: print $_->[0] foreach (@arraylist); Hope it helps you. Best Wishes, Andrea PS: It's always better to describe, what you've ever done, tried or read. You only told us, that you are unable to write code in perl. I'm afraid, it's nearly impossible to help you so in the right way. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]