X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2Fre-engine-Hooks.git;a=blobdiff_plain;f=lib%2Fre%2Fengine%2FHooks.pm;h=43683e5dc123d4f5d3cb06c85586d1ca00385f19;hp=50ba58e63d8f294e18204e001403bd0c971e5b5a;hb=545c54245352f76063b7cf3cf949fb5d1155780f;hpb=b85e0f01bc196351b28fb97eb8ae37871076722a diff --git a/lib/re/engine/Hooks.pm b/lib/re/engine/Hooks.pm index 50ba58e..43683e5 100644 --- a/lib/re/engine/Hooks.pm +++ b/lib/re/engine/Hooks.pm @@ -139,7 +139,7 @@ Allowed to be C if you don't want to call anything for this phase. Registers the callbacks specified by the C object C under the given name C. C can be a pointer to a static object of type C. -C should match with the argument passed to L and L in Perl land. +C is expected to be a nul-terminated string and should match the argument passed to L and L in Perl land. An exception will be thrown if C has already been used to register callbacks. =cut @@ -157,13 +157,13 @@ my $croak = sub { enable $key; -Lexically enables the hooks associated with the key C<$key> +Lexically enables the hooks associated with the key C<$key>. =head2 C disable $key; -Lexically disables the hooks associated with the key C<$key> +Lexically disables the hooks associated with the key C<$key>. =cut @@ -205,7 +205,7 @@ sub disable { =head1 EXAMPLES -See the F directory in the distribution. +Please refer to the F directory in the distribution. It implements a couple of simple examples. =head1 DEPENDENCIES