Change 19063 by [EMAIL PROTECTED] on 2003/03/26 19:33:09
Subject: [perl #21648] Doc typo in Net::servent
From: Andy Lester (via RT) <[EMAIL PROTECTED]>
Date: 22 Mar 2003 05:02:31 -0000
Message-Id: <[EMAIL PROTECTED]>
Affected files ...
... //depot/perl/lib/Net/servent.pm#10 edit
Differences ...
==== //depot/perl/lib/Net/servent.pm#10 (text) ====
Index: perl/lib/Net/servent.pm
--- perl/lib/Net/servent.pm#9~12113~ Fri Sep 21 10:08:24 2001
+++ perl/lib/Net/servent.pm Wed Mar 26 11:33:09 2003
@@ -74,10 +74,10 @@
You may also import all the structure fields directly into your namespace
as regular variables using the :FIELDS import tag. (Note that this still
overrides your core functions.) Access these fields as variables named
-with a preceding C<n_>. Thus, C<$serv_obj-E<gt>name()> corresponds to
+with a preceding C<s_>. Thus, C<$serv_obj-E<gt>name()> corresponds to
$s_name if you import the fields. Array references are available as
-regular array variables, so for example C<@{ $serv_obj-E<gt>aliases()
-}> would be simply @s_aliases.
+regular array variables, so for example C<@{ $serv_obj-E<gt>aliases()}>
+would be simply @s_aliases.
The getserv() function is a simple front-end that forwards a numeric
argument to getservbyport(), and the rest to getservbyname().
End of Patch.