From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96078617110630.tru64-unix-managers.marc@archive.invalid> From: "Robert L. McMillin" Date: Sat, 27 Sep 1997 00:30:30 +0000 To: tru64-unix-managers Subject: Perl 5.003 + DU4.0B: getservbyent doesn't seem to work (SUMMARY) X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96078617110630 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@brain.syseca-us.com> To: "Robert L. McMillin" Date: Fri, 26 Sep 1997 16:38:13 -0700 From: Spider Boardman 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@syseca-us.com Personal: rlm@helen.surfcty.com | rlm@netcom.com Put 'rabbit' in your Subject: or my spam-schnauzer will eat your message.