Is there any way to do this?my $code = 'my $a = shift; warn $a'; my $compartment = Safe->new(':default'); $safe = sub { $compartment->reval($code) || die $@ }; $safe->(42);
In reply to Re^2: How to use Safe to compile anonymous subs
by lstein
in thread How to use Safe to compile anonymous subs
by lstein
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |