tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: "Robert L. McMillin" <rlm () syseca-us ! com>
To: tru64-unix-managers
Subject: Perl 5.003 + DU4.0B: getservbyent doesn't seem to work (SUMMARY)
Date: Sat, 27 Sep 1997 00:30:30 +0000	[thread overview]
Message-ID: <96078617110630.tru64-unix-managers.marc@archive.invalid> (raw)

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" <rlm@syseca-us.com>
Date: Fri, 26 Sep 1997 16:38:13 -0700
From: Spider Boardman <spider@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@syseca-us.com
	   Personal: rlm@helen.surfcty.com | rlm@netcom.com
Put 'rabbit' in your Subject: or my spam-schnauzer will eat your message.

                 reply	other threads:[~1997-09-27  0:30 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox