Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: Broadcast address: a binary anding questionby quidity (Pilgrim) |
on Nov 24, 2000 at 16:53 UTC ( [id://43209]=note: print w/replies, xml ) | Need Help?? |
CPAN is, as ever, your friend. I would use the Net::IPv4Addr module. From the synopsis:
Where $ip_str and $msk_str in this case (assuming you have (0..255) in your arrays) would be:
If you want to know how your problem is solved in the module, then download it and use the source luke.
In Section
Seekers of Perl Wisdom
|
|