summaryrefslogtreecommitdiff
path: root/pp_ctl.c
diff options
context:
space:
mode:
authorVincent Pit <perl@profvince.com>2008-02-16 00:08:50 +0100
committerNicholas Clark <nick@ccl4.org>2008-02-23 08:19:00 +0000
commit996c9baa63e0776f6650c6ba32b83baefb5f0505 (patch)
treeceede97c9784ea550dfbe56588e7d64969f6868d /pp_ctl.c
parent910e06714ae57f4d3d804265c3d148726c7a8a2b (diff)
downloadperl-996c9baa63e0776f6650c6ba32b83baefb5f0505.tar.gz
Re: [PATCH] Splitting OP_CONST (Was: pp_const, not, that, hot?)
Message-ID: <47B60D72.50708@profvince.com> Date: Fri, 15 Feb 2008 23:08:50 +0100 p4raw-id: //depot/perl@33356
Diffstat (limited to 'pp_ctl.c')
-rw-r--r--pp_ctl.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/pp_ctl.c b/pp_ctl.c
index 1dcca0bd2f..0b4da4dfef 100644
--- a/pp_ctl.c
+++ b/pp_ctl.c
@@ -3610,6 +3610,19 @@ PP(pp_require)
return op;
}
+/* This is a op added to hold the hints hash for
+ pp_entereval. The hash can be modified by the code
+ being eval'ed, so we return a copy instead. */
+
+PP(pp_hintseval)
+{
+ dVAR;
+ dSP;
+ mXPUSHs((SV*)Perl_hv_copy_hints_hv(aTHX_ (HV*)cSVOP_sv));
+ RETURN;
+}
+
+
PP(pp_entereval)
{
dVAR; dSP;