Thank You all for your help. I
had the data store in 2 seperate arrays to begin with and I went with
for (my $ii = 0; $ii < @animals; $ii++)
{
print balh blah blah
}
Thank you,
**DAN**
EUROSPACE SZARINDAR <[EMAIL PROTECTED]>
06/27/2003 12:30 PM
To:
"'[EMA
Hi, new to the list here; quick question
!
How do I nest multiple arrays in one
'foreach' statement ?
ex.
@animals = ("cat",
"dog",
"ferret",
"mouse"
);
@petfood = ("meow mix",
"dog chow",
"ferret food",
"mouse food"
);
foreach $object (@animals) {
print "animal = $object
and food = @petf