Parse::Extract::Net::MAC48 - Parse::Extract extraction template for MAC-48 addresses
use Parse::Extract; use Parse::Extract::Net::MAC48; $myParser = new Parse::Extract(); $myMACTemplate = new Parse::Extract::Net::MAC48(); $myParser->registerTemplate( \$myMACTemplate ); #returns list of matched addresses @addresses = $myParser->parse( $data );
Parse::Extract::Net::MAC48 - Parse::Extract extraction template for MAC-48 addresses MAC48 is a extractor template for use with Parse::Extract. This module should be used whenever a data stream contains desired MAC-48 addresses and a correct, efficient parser is required. MAC48 has a near zero false negative rate and a very low false positive rate. As with any Parse::Extract extraction template, MAC48 may be used in combination with other Parse::Extract extraction templates.
new() Constructor. Returns new instance of MAC48.
To install this module type the following:
perl Makefile.PL make make install
This is currently pre-alpha software. MAC48 is however now passing all test cases. Please be aware that it will currently match addresses containing mixed case. This was an intentional design decision due to the ambiguity of hexadecimal. Unfortunately it also causes a small amount of false positives. This may change to be configurable in the future.
Copyright (C) 2009, 2010 Charles A Morris. All rights reserved.
Additional contributions from: Irwin Levinstein <email@example.com> Minhao Dong <firstname.lastname@example.org>
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.