From: Vincent Pit Date: Sun, 3 Jan 2010 00:42:44 +0000 (+0100) Subject: Add a SEE ALSO section X-Git-Tag: v0.05~4 X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2FPerl-Critic-Policy-Dynamic-NoIndirect.git;a=commitdiff_plain;h=9a658054acd1d628ba4f98c49127fcdf8fd1512b Add a SEE ALSO section --- diff --git a/lib/Perl/Critic/Policy/Dynamic/NoIndirect.pm b/lib/Perl/Critic/Policy/Dynamic/NoIndirect.pm index 3769d30..b14ecf5 100644 --- a/lib/Perl/Critic/Policy/Dynamic/NoIndirect.pm +++ b/lib/Perl/Critic/Policy/Dynamic/NoIndirect.pm @@ -132,6 +132,13 @@ L, L. L. +=head1 SEE ALSO + +L is a L policy that statically checks for indirect constructs. +But to be static it has to be very restricted : you have to manually specify which subroutine names are methods for which the indirect form should be forbidden. +This can lead to false positives (a subroutine with the name you gave is defined in the current scope) and negatives (indirect constructs for methods you didn't specify). +But you don't need to actually compile (or run, as it's more or less the same thing) the code. + =head1 AUTHOR Vincent Pit, C<< >>, L.