use integer; #we use integer coordinates use constant nl=>"\n"; use constant X=>0; # these are the array fields use constant Y=>1; # overload => thats new ! use overloead '<=>' => 'compare';