in reply to How to increment a MAC Address?
Something like this perhaps?
$" = ':'; for (my $int = 1; $int <= 999999999999; $int++) { my $leading = sprintf("%012d", $int); my @split = ($leading =~ /../g); print "@split\n"; }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: How to increment a MAC Address?
by rob_au (Abbot) on May 23, 2005 at 09:33 UTC | |
by imperl (Novice) on May 23, 2005 at 10:30 UTC | |
by dcd (Scribe) on May 23, 2005 at 20:35 UTC | |
Re^2: How to increment a MAC Address?
by aditya.singh (Acolyte) on Jun 16, 2005 at 12:24 UTC | |
by dorward (Curate) on Jun 16, 2005 at 12:57 UTC |