From: Vincent Pit Date: Mon, 3 Jan 2011 21:34:11 +0000 (+0100) Subject: Don't compile the hook each time X-Git-Tag: v0.06~9 X-Git-Url: http://git.vpit.fr/?a=commitdiff_plain;h=f62b59f0267d33ba56c2f2ce6f47c4a4a6850d2a;p=perl%2Fmodules%2FPerl-Critic-Policy-Dynamic-NoIndirect.git Don't compile the hook each time --- diff --git a/lib/Perl/Critic/Policy/Dynamic/NoIndirect.pm b/lib/Perl/Critic/Policy/Dynamic/NoIndirect.pm index 068ab88..aab3ff6 100644 --- a/lib/Perl/Critic/Policy/Dynamic/NoIndirect.pm +++ b/lib/Perl/Critic/Policy/Dynamic/NoIndirect.pm @@ -57,11 +57,11 @@ sub violates_dynamic { $file =~ s/(? \$hook;