I do not know now what’s really is going on?
I've started with amending this line :
my $idx = $w->GetNearst($e->x, $e->y);<br><br>
To this (as it was suggested ) :
my $idx = $w-><b>GetNearest</b>($e->x, $e->y);
And I got loads of errors because of the "b" and "/b". So I am back to 1^2.
Recently I have read an article on PM about a guy who has given up programming. It was very interesting read, and I couldn’t really see why he did this….Now I can.