programming-examples/perl/SystemFunction/use Safe.pl

7 lines
140 B
Perl
Raw Normal View History

2019-11-15 12:59:38 +01:00
use Safe;
$safecompartment = new Safe;
$safecompartment->permit(qw(print));
$result = $safecompartment->reval("print \"Hello!\";");