an IP address is 4 8-bit numbers, not a 32-bit numbers/is/is normally represented as/;
Many web browsers accept the decimal value of the IP address: http://1109866011/$ host perlmonks.org perlmonks.org has address 66.39.54.27 $ perl -le 'print ((66 * 256**3)+(39 * 256**2)+(54 * 256)+27);' 1109866011 $ perl -le 'print unpack('N',(gethostbyname("perlmonks.org"))[4]);' 1109866011
In reply to Re^6: Need help with (un)pack templates
by keszler
in thread Need help with (un)pack templates
by Subop
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |