In 5.32: How do I close a file descriptor by number?, I believe that the returned status is incorrectly handled.
From man 2 close:# die "can't sysclose $fd: $!" unless $rc == -1; # should be die "can't sysclose $fd: $!" if $rc == -1; # or die "can't sysclose $fd: $!" if $rc;
RETURN VALUE
close returns zero on success, or -1 if an error occurred.
After Compline,
Zaxo
In reply to Re: Help me update stubborn perlfaq answers!
by Zaxo
in thread Help me update stubborn perlfaq answers!
by brian_d_foy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |