# clear separators to obtain a hex string $mac =~ s/://g; # convert hex string into a dec number my $dec = hex($mac); # revert into a hex string $mac = sprintf("%012x", $dec+$add);
I don't see error here. I think it's used by context...
--
Marco Antonio
Rio-PM
In reply to Re^4: How to increment a MAC Address?
by mda2
in thread How to increment a MAC Address?
by imperl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |