in reply to Foreach two arrays?
Insta-update - alas, alas, too slow. How about this, if they're always the same length:while (@a || @b) {print shift @a,shift @b}
for(@a){print$_,$b[$0];$0++}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Foreach two arrays?
by larryk (Friar) on Sep 06, 2001 at 12:34 UTC |