MacAddress/Formatter/Base16.pm

filter: Statementstmt 100% 10 / 10 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod 100% 1 / 1 totaltotal 100% 14 / 14 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
format
1.0
CRAP 1.0
« MacAddress.pm ↑ Summary MacAddress/Formatter/Colons.pm »
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__
« MacAddress.pm ↑ Summary MacAddress/Formatter/Colons.pm »