I'm using Safe to evaluate some untrusted code, basically to protect a developer from doing something stupid. One of the dumb things he might try to do is eval "", i.e. evaluating any input as perl code would not be smart. However I still want to let him catch exceptions, i.e. use eval {}.
So my little sample code has reval(" eval {1}; "). Basically I want reval(' eval "code"; ') to fail and I want reval(' eval { 1 }; ') to succeed.
Comment on Re: Re: Safe.pm is broken - entertry fails