in reply to Re: extracting corresponding values from another array
in thread extracting corresponding values from another array
my @temps = ('69', '70', '71'); my @numbers = ('0.115', '3.667', '4.78'); my $highNumberIndex = 0; for (my $i = 0; $i < @number; $i++) { if ($numbers[$highNumberIndex] < $numbers[$i]) { $highNumberIndex = $i; } } print $temps[$highNumberIndex];
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: extracting corresponding values from another array
by demerphq (Chancellor) on Dec 03, 2002 at 12:34 UTC | |
by Abigail-II (Bishop) on Dec 03, 2002 at 13:09 UTC | |
by demerphq (Chancellor) on Dec 03, 2002 at 15:26 UTC | |
by Abigail-II (Bishop) on Dec 03, 2002 at 16:40 UTC | |
by demerphq (Chancellor) on Dec 04, 2002 at 12:36 UTC | |
by Anonymous Monk on Dec 03, 2002 at 16:50 UTC | |
|