diff options
author | Joey Hess <joey@kodama.kitenet.net> | 2008-08-29 18:40:41 -0400 |
---|---|---|
committer | Joey Hess <joey@kodama.kitenet.net> | 2008-08-29 18:40:41 -0400 |
commit | 75a096d056270d5b20f19a55416436d731654105 (patch) | |
tree | cff81f6b8bb11bb5779770a8b2efc70b3ac3a46d /doc | |
parent | a8d9f1c5cd1bbceef5d946aae54e0432b7bfb40a (diff) | |
download | ikiwiki-75a096d056270d5b20f19a55416436d731654105.tar ikiwiki-75a096d056270d5b20f19a55416436d731654105.tar.gz |
Work around perl $_ scoping nonsense that caused breakage when loading external plugins.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/bugs/methodResponse_in_add__95__plugins.mdwn | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/bugs/methodResponse_in_add__95__plugins.mdwn b/doc/bugs/methodResponse_in_add__95__plugins.mdwn index 64a919cec..8a88f4eda 100644 --- a/doc/bugs/methodResponse_in_add__95__plugins.mdwn +++ b/doc/bugs/methodResponse_in_add__95__plugins.mdwn @@ -14,6 +14,13 @@ **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 |