astanley has asked for the wisdom of the Perl Monks concerning the following question:
The strange and unexplainable part is...this works perfect for the majority of functions I call it from, however, there are 3 of the approximately 20 functions where the finishup function exits with this error message: Use of uninitialized value in integer ne (!=) at common.pl line 250. I fail to understand this because the finishup function is called the exact same way with the exact same parameters (the client ID) everytime. use strict and perl -w are outputting just that error message - everything else runs perfect. If anyone might be able to shed a little light on this I would greatly appreciate it. -Adam Stanley Nethosters, Inc.sub FinishUp { my ($clientid) = @_; my $incoming=""; while ( (sysread $clientid, $incoming, 1024) && != 0 ) { print "Received Response from $clientid: $incoming\n"; if ($incoming =~ /Resend/) { return "yes", "yes"; } if ($incoming =~ /Finished|OK/) { return "no", "no"; } } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Unexplainable Client/Server trouble
by dws (Chancellor) on Apr 03, 2001 at 00:45 UTC | |
by astanley (Beadle) on Apr 03, 2001 at 00:48 UTC | |
|
Re: Unexplainable Client/Server trouble
by astanley (Beadle) on Apr 03, 2001 at 01:04 UTC | |
by tye (Sage) on Apr 03, 2001 at 02:41 UTC | |
by dws (Chancellor) on Apr 03, 2001 at 01:27 UTC | |
by astanley (Beadle) on Apr 03, 2001 at 02:26 UTC | |
by tye (Sage) on Apr 03, 2001 at 02:51 UTC | |
|
Re: Unexplainable Client/Server trouble
by astanley (Beadle) on Apr 03, 2001 at 00:41 UTC |