NAME
Net::Address::Ethernet - find hardware ethernet address
SYNOPSIS
use Net::Address::Ethernet qw( get_address );
my $sAddress = get_address;
my $sMethod = &Net::Address::Ethernet::method;
DESCRIPTION
The following functions will be exported to your namespace if you request :all like so:
use Net::Address::Ethernet qw( :all );
- get_address
-
Returns the 6-byte ethernet address in hexadecimal format with colon between the bytes. For example, '1a:2b:3c:4d:5e:6f'. No other reformatting is done, so the hex digits can be capital or lowercase; and each hex byte could be one or two digits. For example, '0:3:A:2B:3C:4D'.
- method
-
After a successful call to get_address(), method() will tell you how the information was derived. Currently there are two possibilities: 'arp' for Unix-like systems, or 'ipconfig' for Win32.
NOTES
SEE ALSO
ipconfig, arp
BUGS
Please tell the author if you find any! And please show me the output format of `ipconfig /all` or `arp` from your system.
AUTHOR
Martin Thurn (mthurn@cpan.org).