Thread: Sockets
View Single Post
Old Dec 8th, 2005, 2:33 PM   #4
ProjectX
Programmer
 
ProjectX's Avatar
 
Join Date: Feb 2005
Posts: 37
Rep Power: 0 ProjectX is on a distinguished road
is there a way to print the output of what the server will print. Like lets say i got this code
use IO::Socket;

$socket = IO::Socket::INET -> new (PeerAddr => "www.host.com", PeerPort => 80, Proto => "tcp") || die "Can't connect to the host";
print $socket "Hello, There!\n";

So is there a way to print on my screen what the www.host.com will print on his
like Unrecongnized commnad or just a plain window or Premission Denied.
ProjectX is offline   Reply With Quote