Skip to content
This repository was archived by the owner on Feb 17, 2022. It is now read-only.

Commit 1ed8738

Browse files
committed
completed a first version of the documentation
1 parent e28db2d commit 1ed8738

File tree

2 files changed

+29
-3
lines changed

2 files changed

+29
-3
lines changed

.travis.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,5 @@ install:
1717
- export RELEASE_TESTING=1 AUTOMATED_TESTING=1 AUTHOR_TESTING=1 HARNESS_OPTIONS=j10:c HARNESS_TIMER=1
1818

1919
script:
20-
#- dzil smoke --release --author && ( dzil build --in DPHYS-MacAddress && cd DPHYS-MacAddress && perl Makefile.PL && make && cover -test -report coveralls || true )
21-
- dzil smoke --author && ( dzil build --in DPHYS-MacAddress && cd DPHYS-MacAddress && perl Makefile.PL && make && cover -test -report coveralls || true )
20+
- dzil smoke --release --author && ( dzil build --in DPHYS-MacAddress && cd DPHYS-MacAddress && perl Makefile.PL && make && cover -test -report coveralls || true )
2221

lib/DPHYS/MacAddress.pm

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,5 +127,32 @@ C<DPHYS::MacAddress> object. These objects have a number of methods available.
127127
128128
=method colons
129129
130-
C<$mac->colons()> returns the MAC address in colon separated for with pairs of
130+
C<$mac->colons()> returns the MAC address in colon separated form with pairs of
131131
hex digits.
132+
133+
=method cisco
134+
135+
C<$mac->cisco()> returns the MAC address in dot separated form with groups of
136+
four hex digits like it is used by CISCO.
137+
138+
=method dashes
139+
140+
Much like C<colons> but the MAC address uses dashes C<-> as separators. This
141+
format is often used on Microsofts platforms.
142+
143+
=method hex
144+
145+
Just the 12 hex digits representing the MAC address.
146+
147+
=method is_multicast
148+
149+
True when the MAC address is a multicast address, false otherwise.
150+
151+
=method is_local
152+
153+
True for MAC addresses designated for locally assigned addresses, false otherwise.
154+
155+
=method BUILDARGS
156+
157+
This method is not supposed to be called directly. It enables the constructor
158+
to be called with the single argument being the MAC address.

0 commit comments

Comments
 (0)