Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 617b4d6

Browse files
vaitkuswchristian
authored andcommitted
perlfaq5.pod: fix syscall example
1 parent 64e0b41 commit 617b4d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/perlfaq5.pod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1399,7 +1399,7 @@ to, you may be able to do this:
13991399

14001400
require './sys/syscall.ph';
14011401
my $rc = syscall(SYS_close(), $fd + 0); # must force numeric
1402-
die "can't sysclose $fd: $!" unless $rc == -1;
1402+
die "can't sysclose $fd: $!" if $rc == -1;
14031403

14041404
Or, just use the fdopen(3S) feature of C<open()>:
14051405

0 commit comments

Comments
 (0)