in reply to IP address generation

Also handy (but no one's mentioned yet) is Net::Netmask which will enumerate a given net block.