X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=ext%2FOpcode%2FSafe.pm;h=22ba03fe126f4581a7e07433979f780650df33dc;hb=68795e9367de98482c4a5830e6e94b51bd60f4e3;hp=00ee85dbebd303de98e3cfc540bee538bb1ca277;hpb=5bc28da93666e223bb56098f72517273bc8bcbf9;p=p5sagit%2Fp5-mst-13.2.git diff --git a/ext/Opcode/Safe.pm b/ext/Opcode/Safe.pm index 00ee85d..22ba03f 100644 --- a/ext/Opcode/Safe.pm +++ b/ext/Opcode/Safe.pm @@ -2,9 +2,8 @@ package Safe; use 5.003_11; use strict; -use vars qw($VERSION); -$VERSION = "2.06"; +our $VERSION = "2.07"; use Carp; @@ -48,6 +47,7 @@ sub new { # the whole glob *_ rather than $_ and @_ separately, otherwise # @_ in non default packages within the compartment don't work. $obj->share_from('main', $default_share); + Opcode::_safe_pkg_prep($obj->{Root}); return $obj; } @@ -380,7 +380,7 @@ respectfully. =item share (NAME, ...) This shares the variable(s) in the argument list with the compartment. -This is almost identical to exporting variables using the L +This is almost identical to exporting variables using the L module. Each NAME must be the B of a variable, typically with the leading