Dear monks,
I've the code below to try and get the integer value of an IP.
my $netip = new Net::IP ($ip) or die (Net::IP::Error()); my $intip = $netip->intip(); # output $intip # bless( { 'value' => [ 5050079, 291 ], 'sign' => '+' }, 'Math::BigInt +' );
What does the second number 291 represent? I've run the code with different IPs and it seems similar ips have slightly different first integer values but the same second value.
In reply to Net::IP convert ip to int by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |