Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: IO::Socket question

by borisz (Canon)
on Feb 11, 2004 at 21:58 UTC ( #328397=note: print w/replies, xml ) Need Help??


in reply to IO::Socket question

The line print <$sock>; reads all lines until the $sock is closed. I think you want print scalar(<$sock>);
Boris

Replies are listed 'Best First'.
Re: Re: IO::Socket question
by MF (Scribe) on Feb 11, 2004 at 22:12 UTC
    Thanks a million. It works now :) The reason I had it working first is because I initially forgot to close the socket, that printed out the server reply just dandy.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://328397]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (4)
As of 2021-04-17 20:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?