Hi,
I want to send an array using PERL IO::Socket. I have written the following code:
Code:
use IO::Socket::INET;
$server=IO::Socket::INET->new(Local .......);
#i have skipped the whole command for avoiding typing
$server->recv(@arra, 2):
$avg=($array[0]+$array[1]);
print("server1 =", $avg);
$server->send("$avg"):
When I compile it says:
Code:
usage:$sock->recv(BUF, LEN, [, FLAGS]) at ser1lab7.pl line 3
I have checked the internet it says i have to do serialization, but it doesnt provide any example.
Somebody plz guide me with this problem.
Zulfi.