> > $ 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
You can read about v strings in "Programming Perl" , chap 2 under , section "V string literals" and in the sprintf doc. needless to say, they are very useful. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]