I want to create a function that checks these distances to find the minimum one out of all of them => ie it checks the second distance to the first distance and if it is smaller than it, the smaller one is recorded etc. Then finally I print out the smallest distance found.
Can anyone help me please? :)
Thanks
I tried to explain(my fault i guess, bad english? i'm dutch) that you should use the sort command after you have put all the variables in $data.(i wrote 'loop', sorry for that)
And not use sort everytime you add a value to $data. Because that would be a overhead, because then you sort the same array many times.