http://qs1969.pair.com?node_id=1089825


in reply to Safe.pm: Which parameter for permit_only?

Whittled it down even more to get "Safest Undumper of Data::Dumper" :p
sub SafestUndumper { my $s = Safe->new; $s->permit_only( "anonlist", "anonhash", "pushmark", # perlcall says "PUSHMARK macro tells Perl to make a mental note of th +e current stack pointer." "const", "undef", "list", "lineseq", "padany", "leaveeval", # needed for Safe to operate, is safe without +entereval ); $s->reval(@_); }