programming-examples/perl/SystemFunction/use Safe.pl
2019-11-15 12:59:38 +01:00

7 lines
140 B
Perl

use Safe;
$safecompartment = new Safe;
$safecompartment->permit(qw(print));
$result = $safecompartment->reval("print \"Hello!\";");