Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Safe.pm: Which parameter for permit_only? (Safest Undumper of Data::Dumper)

by Anonymous Monk
on Jun 13, 2014 at 13:18 UTC ( #1089825=note: print w/replies, xml ) Need Help??


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(@_); }
  • Comment on Re: Safe.pm: Which parameter for permit_only? (Safest Undumper of Data::Dumper)
  • Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1089825]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (3)
As of 2022-05-21 00:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (76 votes). Check out past polls.

    Notices?