Paul Johnson wrote:
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
that is great I had used ipcalc etc for doing such a simple thing
But sir can u tell me how is "%vd" interpreted in printf
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]