Thanks to Spider Boardman, who forwarded the following info:
------- Start of forwarded message -------
Subject: Re: Perl 5.003 + DU4.0B: getservbyent doesn't seem to work
In-reply-to: Your message of "Fri, 26 Sep 1997 16:13:51 PDT."
<9709262313.AA04474_at_brain.syseca-us.com>
To: "Robert L. McMillin" <rlm_at_syseca-us.com>
Date: Fri, 26 Sep 1997 16:38:13 -0700
From: Spider Boardman <spider_at_Orb.Nashua.NH.US>
On Fri, 26 Sep 1997 16:13:51 -0700, "Robert L. McMillin" wrote:
rlm> I'm running Perl 5.003 (compiled on a 3.2D-1 box, but
rlm> otherwise running successfully) on an AlphaServer 1000
rlm> 4/233. Is there any reason anyone out there can think of why
rlm> the following code snippet should not yield "smtp"?
rlm> print getservbyent(25,"tcp");
You're running an old version of perl, which didn't do the
necessary htonl() on the port number before call getservbyent().
This wasn't caught in that version because it wasn't in the test
suite, and the people who use that function only tested it on
`big-endian' machines (such as Suns).
That problem is fixed in perl 5.004_01 (the most recent stable release).
------- End of forwarded message -------
--
Robert L. McMillin | Not the voice of Syseca, Inc. | rlm_at_syseca-us.com
Personal: rlm_at_helen.surfcty.com | rlm_at_netcom.com
Put 'rabbit' in your Subject: or my spam-schnauzer will eat your message.
Received on Sat Sep 27 1997 - 02:45:34 NZST