Fix CPAN bug #32896: make version.pm loadable in a Safe compartment
Rafael Garcia-Suarez [Tue, 5 Feb 2008 11:06:11 +0000 (11:06 +0000)]
p4raw-id: //depot/perl@33236

ext/Opcode/Safe.pm

index 2628d74..5ee1f92 100644 (file)
@@ -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