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

Re: Insert colons into a MAC address

by Anonymous Monk
on Jan 15, 2012 at 03:36 UTC ( [id://947941]=note: print w/replies, xml ) Need Help??


in reply to Insert colons into a MAC address

$mac = join(':', unpack('A2A2A2A2A2A2', $_));

Could be written as:

$mac = join(':', unpack '(A2)*', $_);

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2024-04-19 03:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found