...'ba' is greater than 'a'... hmm, so thats what its all about...

However boys, Im sorry to say, but I cannot make the damn thing work for my propose...
Need to restate:

A singel IP is predefined: $IP (some client IP)
There are, say 10 subnets with diffrent masks.
Some subnets have 256 IP some other 128 IP(diffrent masks)
The subnets are predefined too.

So no comparing singel IPs or calculating sunbet masks are needed.

Just print some txt if the IP is between to given IP ranges.
The IP range could be 1-256, or 1-128, or 128-256 and so on.

But stil not works, my damn code
_________________________
I will always look out from behind these eyes...