Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: nested Safe->reval and method from custom Module

by gmpassos (Priest)
on Sep 15, 2004 at 17:43 UTC ( #391248=note: print w/ replies, xml ) Need Help??


in reply to nested Safe->reval and method from custom Module

The permit() method allow new operators over the already allowed list of operators, so, permit(qw()) does nothing.

If you want to permit all you should use deny_only() without arguments, that will allow everything.

Graciliano M. P.
"Creativity is the expression of the liberty".


Comment on Re: nested Safe->reval and method from custom Module
Re^2: nested Safe->reval and method from custom Module
by jeremyh (Beadle) on Sep 15, 2004 at 18:09 UTC
    Thanks, I discovered that the other day when I was reading the documentation.

    What I had wanted was to deny everything so I guess I want permit_only
Re^2: nested Safe->reval and method from custom Module
by jeremyh (Beadle) on Sep 15, 2004 at 21:45 UTC
    Answered my own question thanks to a hint from samtregar about eval and $@ (on a different thread!).
    It needed
    $compartment->permit( qw( entereval ) );

    the nested eval was trapped by the opcode mask of the first eval.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://391248]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (8)
As of 2014-09-18 21:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (124 votes), past polls