perlipc has other examples. IO::Socket is slightly easier than Socket, and translating between the two isn't terribly difficult.use IO::Socket; use strict; my $sock = IO::Socket::INET->new( Proto => 'udp', PeerPort => 5000, PeerAddr => 'hostname', ) or die "Could not create socket: $!\n"; $sock->send('a file to have your advice') or die "Send error: $!\n";
In reply to Re: Simple UDP example anyone?
by chromatic
in thread Simple UDP example anyone?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |