From 7f6fa096863e94509de9beca9bc657820af36951 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Wed, 26 Jun 2013 14:02:03 -0400 Subject: docs --- lib/Reply/Plugin.pm | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/lib/Reply/Plugin.pm b/lib/Reply/Plugin.pm index 5442a4f..4eca813 100644 --- a/lib/Reply/Plugin.pm +++ b/lib/Reply/Plugin.pm @@ -76,7 +76,24 @@ string and returns the modified line. Compiles the string of Perl code into a coderef. Takes the line of code as a string and a hash of extra parameters, and returns the coderef to be executed. The default implementation uses L to compile the given string. -The extra parameters are passed directly to the C call. + +The extra parameters can be anything that C supports, as well as +these additional parameters: + +=over 4 + +=item package + +The package to use to evaluate the code within. Defaults to C
. + +=item environments + +A hashref of additional lexical environments to be merged with the main lexical +environment in the C key. This allows plugins to ensure that their +extra additions to the lexical scope remain visible, even if other plugins +change what "the current lexical scope" means. + +=back =item execute -- cgit v1.2.3-54-g00ecf