Skip to content

Commit a3390c9

Browse files
author
Father Chrysostomos
committed
Yet more perlfunc tweaks
1 parent 445b09e commit a3390c9

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

pod/perlfunc.pod

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2139,7 +2139,7 @@ is left as an exercise to the reader.
21392139

21402140
The C<POSIX::getattr> function can do this more portably on
21412141
systems purporting POSIX compliance. See also the C<Term::ReadKey>
2142-
module from your nearest CPAN site; details on CPAN can be found on
2142+
module from your nearest CPAN site; details on CPAN can be found under
21432143
L<perlmodlib/CPAN>.
21442144

21452145
=item getlogin
@@ -2157,7 +2157,8 @@ secure as C<getpwuid>.
21572157
=item getpeername SOCKET
21582158
X<getpeername> X<peer>
21592159

2160-
Returns the packed sockaddr address of other end of the SOCKET connection.
2160+
Returns the packed sockaddr address of the other end of the SOCKET
2161+
connection.
21612162

21622163
use Socket;
21632164
$hersockaddr = getpeername(SOCK);
@@ -2171,8 +2172,8 @@ X<getpgrp> X<group>
21712172
Returns the current process group for the specified PID. Use
21722173
a PID of C<0> to get the current process group for the
21732174
current process. Will raise an exception if used on a machine that
2174-
doesn't implement getpgrp(2). If PID is omitted, returns process
2175-
group of current process. Note that the POSIX version of C<getpgrp>
2175+
doesn't implement getpgrp(2). If PID is omitted, returns the process
2176+
group of the current process. Note that the POSIX version of C<getpgrp>
21762177
does not accept a PID argument, so only C<PID==0> is truly portable.
21772178

21782179
=item getppid
@@ -2280,7 +2281,7 @@ information pertaining to the user. Beware, however, that in many
22802281
system users are able to change this information and therefore it
22812282
cannot be trusted and therefore the $gcos is tainted (see
22822283
L<perlsec>). The $passwd and $shell, user's encrypted password and
2283-
login shell, are also tainted, because of the same reason.
2284+
login shell, are also tainted, for the same reason.
22842285

22852286
In scalar context, you get the name, unless the function was a
22862287
lookup by name, in which case you get the other thing, whatever it is.
@@ -2313,10 +2314,10 @@ files are supported only if your vendor has implemented them in the
23132314
intuitive fashion that calling the regular C library routines gets the
23142315
shadow versions if you're running under privilege or if there exists
23152316
the shadow(3) functions as found in System V (this includes Solaris
2316-
and Linux.) Those systems that implement a proprietary shadow password
2317+
and Linux). Those systems that implement a proprietary shadow password
23172318
facility are unlikely to be supported.
23182319

2319-
The $members value returned by I<getgr*()> is a space separated list of
2320+
The $members value returned by I<getgr*()> is a space-separated list of
23202321
the login names of the members of the group.
23212322

23222323
For the I<gethost*()> functions, if the C<h_errno> variable is supported in
@@ -2361,7 +2362,7 @@ for each field. For example:
23612362
use User::pwent;
23622363
$is_his = (stat($filename)->uid == pwent($whoever)->uid);
23632364

2364-
Even though it looks like they're the same method calls (uid),
2365+
Even though it looks as though they're the same method calls (uid),
23652366
they aren't, because a C<File::stat> object is different from
23662367
a C<User::pwent> object.
23672368

@@ -2393,7 +2394,7 @@ number of TCP, which you can get using C<getprotobyname>.
23932394

23942395
The function returns a packed string representing the requested socket
23952396
option, or C<undef> on error, with the reason for the error placed in
2396-
C<$!>). Just what is in the packed string depends on LEVEL and OPTNAME;
2397+
C<$!>. Just what is in the packed string depends on LEVEL and OPTNAME;
23972398
consult getsockopt(2) for details. A common case is that the option is an
23982399
integer, in which case the result is a packed integer, which you can decode
23992400
using C<unpack> with the C<i> (or C<I>) format.
@@ -2448,8 +2449,8 @@ X<gmtime> X<UTC> X<Greenwich>
24482449
Works just like L<localtime> but the returned values are
24492450
localized for the standard Greenwich time zone.
24502451

2451-
Note: when called in list context, $isdst, the last value
2452-
returned by gmtime is always C<0>. There is no
2452+
Note: When called in list context, $isdst, the last value
2453+
returned by gmtime, is always C<0>. There is no
24532454
Daylight Saving Time in GMT.
24542455

24552456
See L<perlport/gmtime> for portability concerns.

0 commit comments

Comments
 (0)