> I'm still in favor of moving the socket functions into Socket if for no
> other reason than it may help beat into people's heads that code like:
>
> eval 'require "sys/socket.ph"';
> eval 'sub SOCK_DGRAM {-f "/vmunix" ? 2 : 1;}' if $@;
>
> and
>
> $csock = pack('S n a4 x8', 2, 0, $caddr);
> $ssock = pack('S n a4 x8', 2, $port, $saddr);
>
> unless (socket(S,2,&SOCK_DGRAM,$UDP_PROTO)) {
> warn "$0 (socket): $!\n"; close S; return undef;
> }
>
> should be done away with for good.
Agreed. As Nat put it, to do things socketish with anything even
approaching portability (readability), one has to load the bloody
module already anyway.
> --
> Russ Allbery ([EMAIL PROTECTED]) <http://www.eyrie.org/~eagle/>
--
$jhi++; # http://www.iki.fi/jhi/
# There is this special biologist word we use for 'stable'.
# It is 'dead'. -- Jack Cohen