in reply to New in socket programming .. getting error in socket handle

It'll work a lot better if you replace the comma with a semicolon...

print CLIENT "Hello from the server: ", ^

With a comma, the subsequent close CLIENT is evaluated before the print (because it is an argument to print), which is why you get the error.

Replies are listed 'Best First'.
Re^2: New in socket programming .. getting error in socket handle
by sajanagr (Acolyte) on Jun 14, 2010 at 05:24 UTC
    Hi almust, thanks for the solution.. it worked perfectly fine with semicolon.. cudn't debug this.. thanks a ton