safe-module and namespaces
- From: peter pilsl <pilsl@xxxxxxxxxxxx>
- Date: Wed, 31 May 2006 14:05:17 +0200
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!
What am I not thinking of?
thnx,
peter
.
- Follow-Ups:
- Re: safe-module and namespaces
- From: Charles DeRykus
- Re: safe-module and namespaces
- From: Brian McCauley
- Re: safe-module and namespaces
- Prev by Date: Re: basic regex back reference
- Next by Date: Re: How do I run a Perl script as a Windows XP Service?
- Previous by thread: BEGIN <> BEGIN
- Next by thread: Re: safe-module and namespaces
- Index(es):
Relevant Pages
|
|