diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2003-08-18 19:34:16 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2003-08-18 19:34:16 +0000 |
commit | 554ad1fcb1c9a72f13e2c15496f1fa2ad5b5e63c (patch) | |
tree | 2786519f2fcaec44f0245767070271e3b2357173 /pod/perlfunc.pod | |
parent | 880a76e2f35aeaa0d2eac1e5117d0f24c7256baa (diff) | |
download | perl-554ad1fcb1c9a72f13e2c15496f1fa2ad5b5e63c.tar.gz |
Typo tweaks from Gerrit P. Haase. Fcntl, fcntl, fcntl.
p4raw-id: //depot/perl@20764
Diffstat (limited to 'pod/perlfunc.pod')
-rw-r--r-- | pod/perlfunc.pod | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod index f10927ed85..8f2222a7db 100644 --- a/pod/perlfunc.pod +++ b/pod/perlfunc.pod @@ -1644,7 +1644,7 @@ For example: fcntl($filehandle, F_GETFL, $packed_return_buffer) or die "can't fcntl F_GETFL: $!"; -You don't have to check for C<defined> on the return from C<fnctl>. +You don't have to check for C<defined> on the return from C<fcntl>. Like C<ioctl>, it maps a C<0> return from the system call into C<"0 but true"> in Perl. This string is true in boolean context and C<0> in numeric context. It is also exempt from the normal B<-w> warnings @@ -5671,7 +5671,7 @@ and C<SEEK_END> (start of the file, current position, end of the file) from the Fcntl module. Use of the constants is also more portable than relying on 0, 1, and 2. For example to define a "systell" function: - use Fnctl 'SEEK_CUR'; + use Fcntl 'SEEK_CUR'; sub systell { sysseek($_[0], 0, SEEK_CUR) } Returns the new position, or the undefined value on failure. A position |