Re: safe-module and namespaces
- From: "Brian McCauley" <nobull67@xxxxxxxxx>
- Date: 31 May 2006 10:29:22 -0700
peter pilsl wrote:
I try to use the safe-module to evaluate user-provided code, but it
seems there is a knot in my brain.
use Safe;
$s=new Safe "xxx";
$xxx::x=3;
$s->reval('$x=4');
print $xxx::x,"\n"
Well, this prints out 3 as result and I think it should be 4!
Works OK for me (i.e. prints 4) with Perl 5.8.7 and Safe 2.11
.
- References:
- safe-module and namespaces
- From: peter pilsl
- safe-module and namespaces
- Prev by Date: Re: Database SQL problem....
- Next by Date: Re: better idiom for appending to list from file
- Previous by thread: safe-module and namespaces
- Next by thread: Re: safe-module and namespaces
- Index(es):
Relevant Pages
|