"Pat Rice" schreef:
> I have a whole bunch of arrays eg var1 var2 var3 var4 var5 var6 var7
Numbered names are a red flag, often best put them in an array.
--
Affijn, Ruud
"Gewoon is een tijger."
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
From: "Pat Rice" <[EMAIL PROTECTED]>
> I would like to know how to do the following
> I have a whole bunch of arrays eg var1 var2 var3 var4 var5 var6 var7
In that case you most likely should have an array of arrays.
> and I need each of them to be processed, in the one foreach loop, eg
>
> forea
.. it all depends
on what you actually want to do/how static your structures are etc...
-Original Message-
From: Pat Rice [mailto:[EMAIL PROTECTED]
Sent: 05 November 2007 15:34
To: Perl beginners
Subject: how do do work on a whole bunch of arrays in parrel
hi all
I would like to know how
hi all
I would like to know how to do the following
I have a whole bunch of arrays eg var1 var2 var3 var4 var5 var6 var7
and I need each of them to be processed, in the one foreach loop, eg
foreach var(@var1, @var2, @var3, @var4, @var5, @var6){
Do somthing here on each var
}
is this pass