Control: tags -1 +fixed-upstream
On Sat, May 04, 2013 at 11:07:16AM +0200, Niels Thykier wrote:
> I believe a more accurate example (although a bit more verbose) would
> be:
>
> """
> if (fileno(THIS) != -1 && fileno(THIS) == fileno(THAT)) {
> print "THIS and THAT are dups\n";
>
Package: perl
Version: 5.14.2-21
Severity: minor
perldoc -f fileno
"""
fileno FILEHANDLE
[...] If there is no real file descriptor at the OS level, as can
happen with filehandles connected to memory objects via "open" with a
reference for the third argument, -1 is returned.
[...]
You can use
2 matches
Mail list logo