As
chargrill<update>,
Herkum and
BrowserUK</update> say
s, a bunch of numbers with more than one dot in between don't
evaluate to what you expected. That could also be a packed IP address (see
gethostbyname):
perl -le '$lo = 127.0.0.1; $l = (gethostbyname("localhost"))[4];print
+"yup" if $lo eq $l'
yup
Anyways, it's a packed structure of bytes. To get back what you expected,
use the %v format directive of sprintf:
perl -le 'printf "%vd\n", (gethostbyname("localhost"))[4]'
127.0.0.1
--shmem
_($_=" "x(1<<5)."?\n".q·/)Oo. G°\ /
/\_¯/(q /
---------------------------- \__(m.====·.(_("always off the crowd"))."·
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}