in reply to Re^2: Handling sockets in a server
in thread Handling sockets in a server

Not to deviate too much from the questions in this post, so you can close a filehandle and you are able to check a return value from the close?

"I'll go further than that, I'll get off at the depot." (*) You can use the syntax:

close FILEHANDLE or die "Could not close FILEHANDLE: $!\n";
to tell you what the errno varaible was set to when FILEHANDLE could not be closed.

--

(*) - This quote stolen with great embarrassment from Groucho Marx.

--
tbone1, YAPS (Yet Another Perl Schlub)
And remember, if he succeeds, so what.
- Chick McGee

Replies are listed 'Best First'.
Re^4: Handling sockets in a server
by skerr1 (Sexton) on Oct 21, 2005 at 14:55 UTC

    Geez, now you sucked me in. Can you demonstrate a block of code that this works with. I've written several tools that tried to check the return on a close filehandle and never have I seen an error. I would like to see a true failure.

    And if someone would like to answer the orginal questions of the post, I would like that too! :)

    Thanks!

    Shannon Kerr