Here's another "What's a quick and real neat way of...." type question
Enkidu
enkidu at cliffp.com
Thu Nov 14 04:06:14 CST 2002
Say you have two arrays @a and @b.
You can loop through one array by using foreach:
for my $file (@a) {
<do something with $file> ;
}
Is there a neat way of looping through *both arrays* at the same time?
Something like:
for my ($file, $desc) (@a, @b) {
<do something with $file, $desc> ;
}
Cheers,
Cliff
--
The Nats held a Party and no one came.
More information about the Wellington-pm
mailing list