in reply to parallel procesing
I think you want a combination of zip and natatime ("n-at-a-time") from List::MoreUtils:
my $pairs = natatime 2, zip $array1, $array2; while (my (@vals) = $pairs->()) { ... };
zip "zips" together two lists, alternating the elements. natatime returns you n elements from a list.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: parallel procesing
by ikegami (Patriarch) on Apr 06, 2008 at 09:54 UTC | |
|
Re^2: parallel procesing (List::Pairwise)
by lodin (Hermit) on Apr 06, 2008 at 12:39 UTC | |
by baxy77bax (Deacon) on Apr 06, 2008 at 14:12 UTC | |
by GrandFather (Saint) on Apr 06, 2008 at 21:01 UTC | |
by ikegami (Patriarch) on Apr 07, 2008 at 03:13 UTC |