Re: $! and close() (was Strange Errors)

2002-10-14 Thread Jeff 'japhy' Pinyan
On Oct 14, James Edward Gray II said: >Perl's $! variable is being set by a call to close(), I'm 99% sure. >However, this call to close() does not return undef, it succeeds. The Then close() isn't setting $! (to any meaningful value). Only use $! when something has failed. -- Jeff "japhy" Pi

Re: Strange Errors

2002-10-14 Thread James Edward Gray II
Thanks a million! You're totally right, it's just me miss using $!. I had just about figured all that out messing with it today, but I didn't understand the $! variable well enough. Thanks for explaining it to me. James On Monday, October 14, 2002, at 02:33 PM, Michael Fowler wrote: > On

Re: Strange Errors

2002-10-14 Thread Michael Fowler
On Sun, Oct 13, 2002 at 09:50:58PM -0500, James Edward Gray II wrote: > What's the best way to to track down the line that is setting the $! > variable? I can't quite figure out the rules of this guy. Once it's set, > what clears it? Its it localized to subroutines or packages or anything? > I

$! and close() (was Strange Errors)

2002-10-14 Thread James Edward Gray II
Hello again: Sorry to reply to my own message, but I know a little more now and could still use some clarification. Perl's $! variable is being set by a call to close(), I'm 99% sure. However, this call to close() does not return undef, it succeeds. The call is being made on a non blocking

Strange Errors

2002-10-13 Thread James Edward Gray II
Howdy: I don't want to fill this message with all three modules of my code, so I'll try some general questions to see if I can get the help I need. Okay, I'm basically building a Multiplexed Non-Blocking IO Telnet Server. Earlier today I was having bug trouble, so I threw in a few extra prin