more useful options | |
PerlMonks |
Re: (tye)Re: BigInt usageby ryan (Pilgrim) |
on Feb 17, 2001 at 15:12 UTC ( [id://59114]=note: print w/replies, xml ) | Need Help?? |
After some stuffing around I came up with a solution:
The large integers are never a problem until the 'for' loop, so I just used the ACTUAL host count instead of the numbers representing each address, then added the original address representation that was subtracted when it is joined. I have limited the width of the range regardless because what I am doing with the IPs is fruitless when there are more than 1 million. So BigInt is useless anyway.
I can't fault the code now, does exactly what I want in every case. Thanks.
In Section
Seekers of Perl Wisdom
|
|