Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Passing argument into STDIN inside safe.pm reval

by gideondsouza (Pilgrim)
on Feb 11, 2013 at 18:33 UTC ( [id://1018212]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    ## executor.pl
    use Safe;
    ...
            print "Unsafe code detected: $@";
        }
    }
    
  2. or download this
        open(FILE,"perl executor.pl '$code' 2>&1 |")
        my @output=<FILE>;
        my $resp = join('',@output);
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2024-03-28 21:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found