in reply to Perl Sockets Problem

Using defined returns true, but won't set $_ (at least I don't think that it will).
Try this
my $new_sock = $sock->accept(); while(<$new_sock>) { print $_; } close($sock);

Replies are listed 'Best First'.
Re: Re: Perl Sockets Problem
by JoeJaz (Monk) on Jul 10, 2003 at 16:06 UTC
    Wow! Thanks a bunch. That seemed to work. I guess sometimes it's the little things that make the differance. Now I have something to work with. Thanks again.
    Joe