summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgs@consttype.org>2010-04-29 17:13:42 +0200
committerJesse Vincent <jesse@bestpractical.com>2010-05-13 17:59:24 -0400
commit8c4f6d1697b224348f414b009ae6062fb24768df (patch)
tree244b993cfaa6eb98966656e189e2dd9054fa0719
parent41f5edcf34994a7fecc17228dfa4bbfd30818c61 (diff)
downloadperl-8c4f6d1697b224348f414b009ae6062fb24768df.tar.gz
Mention that Safe::reval() no wraps returned coderefs
-rw-r--r--dist/Safe/Safe.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/dist/Safe/Safe.pm b/dist/Safe/Safe.pm
index 20efe17eb3..34659e6b8a 100644
--- a/dist/Safe/Safe.pm
+++ b/dist/Safe/Safe.pm
@@ -651,9 +651,9 @@ expression evaluated, or a return statement may be used, just as with
subroutines and B<eval()>. The context (list or scalar) is determined
by the caller as usual.
-This behaviour differs from the beta distribution of the Safe extension
-where earlier versions of perl made it hard to mimic the return
-behaviour of the eval() command and the context was always scalar.
+If the return value of reval() is (or contains) any code reference,
+those code references are wrapped to be themselves executed always
+in the compartment. See L</wrap_code_refs_within>.
The formerly undocumented STRICT argument sets strictness: if true
'use strict;' is used, otherwise it uses 'no strict;'. B<Note>: if