Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^2: Is it safe to use external strings for regexes? (use Safe)

by LanX (Saint)
on Oct 06, 2021 at 16:21 UTC ( [id://11137268]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use Safe;
    
    ...
    $compartment->permit(qw(time sort :browse));
    
    $result = $compartment->reval($unsafe_code);
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (2)
As of 2024-04-26 01:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found