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

Re^4: Passing argument into STDIN inside safe.pm reval (Update: which opcodes to enable)

by Dallaylaen (Chaplain)
on Feb 14, 2013 at 21:14 UTC ( [id://1018795]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w
    
    ...
    };
    
    print "Eval OK\n";
    
  2. or download this
    #!/usr/bin/perl -w
    
    use strict;
    ...
        print "Unsafe code detected: $@";
        print "At: $stack";
    }
    
  3. or download this
    bash$ perl safe2.pl 1 
    Trying: 1
    ...
        main::__ANON__(** Incomplete caller override detected; @DB::args w
    +ere not set **) called at /usr/share/perl/5.14/Safe.pm line 358
        eval {...} called at /usr/share/perl/5.14/Safe.pm line 358
        Safe::reval(** Incomplete caller override detected; @DB::args were
    + not set **) called at safe2.pl line 26
    
  4. or download this
    bash$ perl safe2.pl 1 padany const leaveeval lineseq
    Trying: 1
    1
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (2)
As of 2024-04-19 20:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found