summaryrefslogtreecommitdiff
path: root/ext/Opcode
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2008-02-05 11:06:11 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2008-02-05 11:06:11 +0000
commit1c92ff99e7dfbea7d6a8aebe7194d6251fb1b810 (patch)
tree34cb3e7ee079ab37b516701858aea45c2c409f38 /ext/Opcode
parent519bf2a30a26bd20a088bab971eda710889326a4 (diff)
downloadperl-1c92ff99e7dfbea7d6a8aebe7194d6251fb1b810.tar.gz
Fix CPAN bug #32896: make version.pm loadable in a Safe compartment
p4raw-id: //depot/perl@33236
Diffstat (limited to 'ext/Opcode')
-rw-r--r--ext/Opcode/Safe.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/Opcode/Safe.pm b/ext/Opcode/Safe.pm
index 2628d74aa1..5ee1f92d5c 100644
--- a/ext/Opcode/Safe.pm
+++ b/ext/Opcode/Safe.pm
@@ -58,6 +58,8 @@ my $default_share = [qw[
&utf8::downgrade
&utf8::native_to_unicode
&utf8::unicode_to_native
+ $version::VERSION
+ $version::CLASS
], ($] >= 5.010 && qw[
&re::is_regexp
&re::regname