dear all, how do i send an array of items, for example a file or some variables, using perl?? i found the following sample code online, but it only send a message over
thanks alot
===================================
#!/usr/bin/perl -w
use IO::Socket;
my $sock = new IO::Socket::INET (
PeerAddr => '119.0.0.1', #IP of node to connect to
PeerPort => '9999', #Port on server to connect to
Proto => 'tcp', #Protocol to use for connection
);
die "Could not create socket: $!\n" unless $sock;
#Error message if client socket can't be opened
print $sock "Hello there!\n"; #write to stdout
close($sock);
thanks alot
===================================
#!/usr/bin/perl -w
use IO::Socket;
my $sock = new IO::Socket::INET (
PeerAddr => '119.0.0.1', #IP of node to connect to
PeerPort => '9999', #Port on server to connect to
Proto => 'tcp', #Protocol to use for connection
);
die "Could not create socket: $!\n" unless $sock;
#Error message if client socket can't be opened
print $sock "Hello there!\n"; #write to stdout
close($sock);