Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Insert colons into a MAC address

by Not_a_Number (Parson)
on Jan 13, 2012 at 23:30 UTC ( #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
Node Status?
node history
Node Type: note [id://947850]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2014-09-20 22:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (163 votes), past polls