Data::Semantic::RegexpAdapter - Adapter for Regexp::Common patterns
version 1.101620
use constant LOAD => 'AT::NICAT';
This is the optional name of the Regexp::Common module to load. For example, if you use a pattern from Regexp::Common::AT::NICAT, you would set this to AT::NICAT. If you use patterns bundled in the same distribution as Regexp::Common you can leave it empty.
AT::NICAT
use constant REGEXP_KEYS => qw(URI file);
These is the list of keys that you would pass to Regexp::Common's $RE. For example, if you wanted to match HTTP URIs, you would use qw(URI HTTP). Compare with Regexp::Common::URI::http. See Regexp::Common for more details on this mechanism.
$RE
qw(URI HTTP)
use constant KEEP_KEYS => qw(scheme host port query);
This class supports Regexp::Common's -keep mechanism. kept() returns a hash of the patterns returned by Regexp::Common. In this list you can specify the hash keys that $1, $2 and so on are mapped to.
-keep
kept()
$1
$2
Turns the object's settings into a list of flags to be passed to Regexp::Common's $RE. For example, Regexp::Common expects a {-keep} key, but this class has a keep() accessor. If you subclass this class and add more accessors that correspond to Regexp::Common keys, you need to override this method and map the attributes to the keys. Be sure to call SUPER::flags(). See Data::Semantic::URI::http for an example.
{-keep}
keep()
SUPER::flags()
FIXME
See perlmodinstall for information and options on installing Perl modules.
No bugs have been reported.
Please report any bugs or feature requests through the web interface at http://rt.cpan.org.
The latest version of this module is available from the Comprehensive Perl Archive Network (CPAN). Visit http://www.perl.com/CPAN/ to find a CPAN site near you, or see http://search.cpan.org/dist/Data-Semantic/.
The development version lives at http://github.com/hanekomu/Data-Semantic/. Instead of sending patches, please fork this project using the standard git and github infrastructure.
Marcel Gruenauer <marcel@cpan.org>
This software is copyright (c) 2007 by Marcel Gruenauer.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Data::Semantic, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Data::Semantic
CPAN shell
perl -MCPAN -e shell install Data::Semantic
For more information on module installation, please visit the detailed CPAN module installation guide.