in reply to list of ips in a given subnet
Net::Netmask handles this nicely, but only for IPv4.
All code given here is UNTESTED unless otherwise stated.