From: Jesse Luehrs Date: Sat, 7 May 2011 00:33:37 +0000 (-0500) Subject: mention moosex-mangle X-Git-Tag: 2.0003~35 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=974906b37c7328e7b1baa70ec7218612be56fbfb;p=gitmo%2FMoose.git mention moosex-mangle --- diff --git a/lib/Moose/Manual/FAQ.pod b/lib/Moose/Manual/FAQ.pod index e3beadf..8052982 100644 --- a/lib/Moose/Manual/FAQ.pod +++ b/lib/Moose/Manual/FAQ.pod @@ -203,6 +203,9 @@ preserve context). The C method modifier has neither of these limitations, but is a little more verbose. +Alternatively, the L extension provides the +C function, which does allow you to affect C<@_>. + =head3 Can I use C to stop execution of a method? Yes, but only if you throw an exception. If this is too drastic a @@ -222,6 +225,10 @@ of the main method. Here is an example: By choosing not to call the C<$next> method, you can stop the execution of the main method. +Alternatively, the L extension provides the +C function, which will conditionally prevent execution +of the original method. + =head3 Why can't I see return values in an C modifier? As with the C modifier, the C modifier is simply called @@ -240,6 +247,10 @@ is some sample code: return reverse @rv; }; +Alternatively, the L extension provides the +C function, which allows modifying the return values +of the original method. + =head2 Type Constraints =head3 How can I provide a custom error message for a type constraint?