Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Insert colons into a MAC address

by Not_a_Number (Prior)
on Jan 13, 2012 at 23:30 UTC ( [id://947850]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $_ = '525400eb8b36';
    die "Invalid input\n" if length != 12 or /[^[:xdigit:]]/;
    print join ':', unpack '(A2)*';
    
  2. or download this
    use Net::MAC;
    print Net::MAC->new( mac => '525400eb8b36' )->as_Sun();
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2024-04-23 21:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found