Perl-Sensitive Sunglasses | |
PerlMonks |
Re^3: How to increment a MAC Address?by ikegami (Patriarch) |
on Jun 17, 2005 at 23:13 UTC ( [id://467899]=note: print w/replies, xml ) | Need Help?? |
Close, but not quite. You're trying to store a 48bit number into a 32bit variable. (Well, it's 32 bit on my Windows machine.) You have an overflow problem.
You could use Math::BigInt, or you could use floating point numbers (doubles) as I've previously detailed.
In Section
Seekers of Perl Wisdom
|
|