From 5dac7880bdc477876b4ad267f3889e0371bfc070 Mon Sep 17 00:00:00 2001 From: Father Chrysostomos Date: Sat, 19 Feb 2011 19:19:18 -0800 Subject: [PATCH] perlfunc tweaks MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Notable changes, apart from grammar and punctuation: • ‘In general’ in conjunction with ‘all’ is slightly contradictory • wait, waitpid, and syscall are not the only functions that do not return undef on failure --- pod/perlfunc.pod | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod index 8a486a8..055279a 100644 --- a/pod/perlfunc.pod +++ b/pod/perlfunc.pod @@ -79,10 +79,10 @@ there, not the list construction version of the comma. That means it was never a list to start with. In general, functions in Perl that serve as wrappers for system calls ("syscalls") -of the same name (like chown(2), fork(2), closedir(2), etc.) all return +of the same name (like chown(2), fork(2), closedir(2), etc.) return true when they succeed and C otherwise, as is usually mentioned in the descriptions below. This is different from the C interfaces, -which return C<-1> on failure. Exceptions to this rule are C, +which return C<-1> on failure. Exceptions to this rule include C, C, and C. System calls also set the special C<$!> variable on failure. Other functions do not, except accidentally. @@ -146,7 +146,7 @@ C, C, C, C, C, C