Grouping perl foreach values

Michael Still mikal at
Tue Jul 9 11:09:04 EST 2002


I've surfed and can't find anything on this, although that it probably
because I don't know the perl word for it.

I have a list of value in the form:


And I want to work through them in sets of three, something like:

foreach($cola, $colb, $colc) ($listofthings){
  ... do stuff ...

Can people either suggest how to do this, or suggest how I can refactor
the problem to make this easier?



Michael Still (mikal at     UMT+10hrs

More information about the linux mailing list