| 1 | 8 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 2 | 8 | ▶ | use warnings FATAL => 'all'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | |||
| 4 | # ABSTRACT: formatting MAC addresses in base16 hex format | ||
| 5 | |||
| 6 | package NetObj::MacAddress::Formatter::Base16; | ||
| 7 | 8 | $NetObj::MacAddress::Formatter::Base16::VERSION = '1.0.2'; | |
| 8 | 43 | ▶ | sub format { |
|
Subroutine
format: called CC=1 SCAR=0.0
Pod
documented
| |||
| 9 | 43 | my ($mac) = @_; | |
| 10 | 43 | return join('', unpack('H2' x 6, $_[0]->binary())); | |
| 11 | } | ||
| 12 | |||
| 13 | 8 | 1; | |
| 14 | |||
| 15 | __END__ | ||