Use loop:
my @m_ports = (1111,2222,3333,4444); my @in_sockets; for (@m_ports) { my $in_sock = IO::Socket::Multicast->new(Proto=>'udp',LocalPort=>$ +_); push @in_sockets, $in_sock if $in_sock; }
In reply to Re: Multicast to Unicast to Multicast
by zwon
in thread Multicast to Unicast to Multicast
by iphony
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |