On Thu, Dec 26, 2002 at 04:39:30PM -0500, Kipp, James wrote: > Happy Hollidays > > I want to bitwize AND 2 IP adr strings, not sure of how to pack() them to be > able to AND them. before i start playing with pack,sprintf,socket,etc.. I > was wondering if someone already had a way.
$ perl -e 'printf "%vd\n", 192.168.1.1 & 255.255.0.0' 192.168.0.0 -- Paul Johnson - [EMAIL PROTECTED] http://www.pjcj.net -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]