From 1bbaa1a5d3473d774940d39e9aa54b628df6bcd3 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Fri, 8 Jul 2011 23:52:45 -0500 Subject: docs --- lib/smartmatch/engine/core.pm | 71 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) diff --git a/lib/smartmatch/engine/core.pm b/lib/smartmatch/engine/core.pm index 952bbcc..0cb7cd0 100644 --- a/lib/smartmatch/engine/core.pm +++ b/lib/smartmatch/engine/core.pm @@ -26,6 +26,25 @@ use Hash::Util::FieldHash qw(idhash); use Scalar::Util qw(blessed looks_like_number reftype); use overload (); +=head1 SYNOPSIS + + use smartmatch 'core'; + +=head1 DESCRIPTION + +NOTE: This module is still experimental, and the API may change at any point. +You have been warned! + +This module implements the existing smart matching algorithm from perl 5.14, as +a module. It has a pure perl implementation of the algorithm (which can be +requested by setting C<$smartmatch::engine::core::USE_PP> to a true value +before Cing this engine), but by default it uses a C implementation which +should be identical to the algorithm in 5.14 - this module uses some new +compiler hooks to turn calls to the engine's C function into a custom +opcode, which is implemented by a copy of the smart match code from perl 5.14. + +=cut + sub type { my ($thing) = @_; @@ -192,4 +211,56 @@ sub match { } } +=head1 BUGS + +No known bugs. + +Please report any bugs through RT: email +C, or browse to +L. + +=head1 SEE ALSO + +L + +L + +=head1 SUPPORT + +You can find this documentation for this module with the perldoc command. + + perldoc smartmatch::engine::core + +You can also look for information at: + +=over 4 + +=item * AnnoCPAN: Annotated CPAN documentation + +L + +=item * CPAN Ratings + +L + +=item * RT: CPAN's request tracker + +L + +=item * Search CPAN + +L + +=back + +=begin Pod::Coverage + +type +match +init + +=end Pod::Coverage + +=cut + 1; -- cgit v1.2.3-54-g00ecf