Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

The proper use of Safe

by BMaximus (Chaplain)
on Mar 31, 2001 at 03:34 UTC ( [id://68562]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $c;
    my $ev = '$c = 4 + 5';
    eval($ev);
    print $c;
    
  2. or download this
    my $c;
    my $cpt = new Safe;
    ...
    my $ev = '$c = 4 + 5';
    $cpt->reval($ev);
    print $c;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (8)
As of 2024-04-23 14:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found