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