Skip to content

Commit d5eedef

Browse files
committed
[perl #126544] correct the first example in the fcntl documentation
1 parent 19b46ab commit d5eedef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pod/perlfunc.pod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2229,7 +2229,7 @@ value returned work just like C<ioctl> below.
22292229
For example:
22302230

22312231
use Fcntl;
2232-
fcntl($filehandle, F_GETFL, $packed_return_buffer)
2232+
my $flags = fcntl($filehandle, F_GETFL, 0)
22332233
or die "can't fcntl F_GETFL: $!";
22342234

22352235
You don't have to check for C<defined> on the return from C<fcntl>.

0 commit comments

Comments
 (0)