unpack "I", pack "C4", split /\./, '255.255.240.0'; [download]
In reply to Re: Boolean logic with IP addresses by busunsl in thread Boolean logic with IP addresses by RatArsed