Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^4: How to increment a MAC Address?

by dcd (Scribe)
on May 23, 2005 at 20:35 UTC ( #459705=note: print w/ replies, xml ) Need Help??


in reply to Re^3: How to increment a MAC Address?
in thread How to increment a MAC Address?

if $_ holds your string, then this should increment it

$_ = join ":",unpack "A2"x6, substr( ('0' x 12 . (1 + join '',split /:/,$_))), -12)


Comment on Re^4: How to increment a MAC Address?
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://459705]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (11)
As of 2015-08-03 18:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The oldest computer book still on my shelves (or on my digital media) is ...













    Results (48 votes), past polls