]> sipb.mit.edu Git - ikiwiki.git/blobdiff - doc/bugs/methodResponse_in_add__95__plugins.mdwn
filecheck: Fix bug that prevented the pagespecs from matching when not called by...
[ikiwiki.git] / doc / bugs / methodResponse_in_add__95__plugins.mdwn
index 64a919cec5d2209d2b2069434d4756b595bd3999..c82b532db9c3f30e3687e7e074da0228718e16c3 100644 (file)
 
 **patch comment:** solves the problem on 2.61. as these are the first lines of perl i've knowingly written, i can not explain what exactly was happening there.
 
+> Perl's `$_` handling is the worst wart on it, or possibly any language.
+> Here it's an alias to the actual value in the array, and when deep
+> in the external plugin load code something resets `$_` to a different
+> value, the alias remains and it changes the value at a distance.
+> 
+> Thanks for the excellent problem report, [[fixed|done]]. --[[Joey]]
+
 ------------------------------------------------------------------------------
     diff --git a/IkiWiki.pm b/IkiWiki.pm
     index e476521..d43abd4 100644
     --- a/IkiWiki.pm
     +++ b/IkiWiki.pm
-    @@ -471,7 +471,11 @@ sub loadplugins () { #{{{
+    @@ -471,7 +471,11 @@ sub loadplugins () {
                     unshift @INC, possibly_foolish_untaint($config{libdir});
             }