in reply to My Crawler script

What I expected was getting the url servers response printed

I agree with the tenor of the other replies, but in case you want the know what the problem with your code is...

For one, you've connected $sock, but are then trying to read from SOCKET.

Also, the page to get is specified relative to the server, i.e. without protocol "http://" and server name.  E.g.

... send($sock,"GET / HTTP/1.0\n\n",0); my @response=<$sock>; print("@response")