in reply to relating arrays
Given:
...then just do:my @data = ('70.1', '75.3','76.5', '87.4'); my @numbers = ('0.001','0.34','0.456','0.521');
...and then you can retrieve the values as needed. E.g.: print $look_up{76.5}, "\n"; # prints: 0.456my %look_up; @look_up{@data} = @numbers;
------------------------------------------------------------
"Perl is a mess
and that's good because the
problem space is also a mess." - Larry Wall
|
|---|