I'm cobbling up a bit of code that'll need to do something akin to 'map' on two
lists at the same time. I'm going to just brute-force it [doing shifts in a
loop: $left = shift @leftlist; $right = shift @rightlist, with all the usual
nonsense around to do the right thing when one list is shorter than the other
[delivering up 'undef's but without warnings, etc].... But it feels clumsy.
I was wondering if there's any fun to be found in elegant/clever ways to
traverse two lists at the same time... I envisioned something like:
map2 {stuff} \@list1, \@list2
where inside the map maybe you had $a and $b aliased appropriately or something
like that. Or perhaps:
mapn {stuff} list-of-listrefs
where you aliased $1, $2, $3, ... to the parallel entries from the different
lists...
/Bernie\
--
Bernie Cosell Fantasy Farm Fibers
mailto:bernie@;fantasyfarm.com Pearisburg, VA
--> Too many people, too few sheep <--