in reply to Searching parallel arrays.

Hmm... I'd be tempted to copy them to a single array, but as anon. arrays of value + source - e.g.:

foreach(@a1){ push @all, ['a1', $_]; } foreach(@a2){ push @all, ['a2', $_]; } etc...

Then you can sort on @all->[1] and still have access to the original array name (oh, and thinking about it, you could just create references to the original array elements, rather than copying the values).

<update>mediocre minds think alike...</update>

map{$a=1-$_/10;map{$d=$a;$e=$b=$_/20-2;map{($d,$e)=(2*$d*$e+$a,$e**2 -$d**2+$b);$c=$d**2+$e**2>4?$d=8:_}1..50;print$c}0..59;print$/}0..20
Tom Melly, pm@tomandlu.co.uk