- or download this
Name f1 f2 f3 f4
africa1 18 1 48 23
...
usa1 55 20 56 25
china1 35 37 55 87
china2 40 33 50 73
- or download this
use strict;
use warnings;
...
}
- or download this
WITH NEAREST sub
jitendra@jitendra-Aspire-S3-391[test] perl testMAT.pl mat.txt
+[10:17PM]
...
nearest to 35 in array is: 33 and name is china2
nearest to 59 in array is: 56 and name is usa1
nearest to 70 in array is: 30 and name is africa3