in reply to Re: Module for working with IP Addresses and Ranges
in thread Module for working with IP Addresses and Ranges
can be written asmy @bytes; while ($address =~ /(\d+)/g) { push @bytes,$1 }
so you end up withmy @bytes = $address =~ /(\d+)/g;
unpack('N', pack('C*', $address =~ /(\d+)/g))
|
---|