in reply to IPv6 Sockets
I can't figure out why INET6 sockets are printing such weird values for the port numbers, even though I'm using the same 23456 in both cases.
Did you read the docs? Probably cause they're supposed to do that, cause they're documented to do that.
:P If IO::Socket::INET6 isn't satisfying try reading RFC 3493 - Basic Socket Interface Extensions for IPv6