in reply to Re^3: How to increment a MAC Address?
in thread How to increment a MAC Address?
I did this:
# 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
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^5: How to increment a MAC Address?
by merlyn (Sage) on Jun 16, 2005 at 17:53 UTC |
In Section
Seekers of Perl Wisdom