On Tue, Feb 26, 2008 at 10:07 AM, <[EMAIL PROTECTED]> wrote:
> Hello All,
>
>
>
> I have two arrays contains exact no. of elements. Now what I need to do
> is , I want to execute certain commands to each elements of the array at
> a time.
@array1 = (1,2,3);
@array2 = (4,5,6);
for (my $i=0; $i < scalar(@array1); $i++) {
print $array1[$i], $array2[$i], "\n";
}
is straight forward enough.
Troy
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/