in reply to extracting corresponding values from another array
my (@temps, @numbers); my ($ind, $maxind, $max) = (-1, -1, $num[0]); for my $num (@numbers) { $ind++; $maxind = $ind, $max = $num if $num > $max; } my $maxtemp = $temps[$maxind];
pike
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: extracting corresponding values from another array
by demerphq (Chancellor) on Dec 03, 2002 at 15:33 UTC |