On Wed, 19 Mar 2003 09:01:28 -0500
Bob Showalter <[EMAIL PROTECTED]> wrote:

> 
> That can't work. You need a port at least. Where are you checking for failed
> connection? Do you have "use strict" and -w in your program.
> 

That was just a VERY basic example of creating $client and yes I do use strict,
warning and checking for connection errors ;)

> 
> By "receive nothing", I assume you mean receive an empty line terminated by
> \n (or whatever you have $/ set to).
> 
> For the next to happen, $_ must contain (after chomping) either '' (empty
> string), or '0' (a single zero). If $_ contains anything else (including any
> amount of whitespace), $_ will be considered "true" and the next will not
> execute.
> 
> So, tell us exactly what is in $_ that you think should trigger "next" but
> doesn't.
> 

There is _NOTHING_ in it (I'm thinking an undefined value), when I try to match
against the variable supposedly containing the incoming data and supposedly
actually contain something. The result is the too familiar 'uninitialized
value' warning. Even doing thus:

while (defined(my $data = <$client>)) {

Still results in the same oddity. and even checking the variable underneath
with defined() still does not work.

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to