Safe::World

Safe::World can create multiple virtual instances of a Perl interpreter that can be assembled together.
Download

Safe::World Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Graciliano M. P.
  • Publisher web site:
  • http://search.cpan.org/~gmpassos/

Safe::World Tags


Safe::World Description

Safe::World can create multiple virtual instances of a Perl interpreter that can be assembled together. Safe::World can create multiple virtual instances of a Perl interpreter that can be assembled together.SYNOPSISSee USE section for complexer example and the test.pl script. use Safe::World ; my $world = Safe::World->new( stdout => $stdout , ## - redirect STDOUT to this scalar. stderr => $stderr , ## - redirect STDERR to this scalar. flush => 1 , ## - output is flushed, soo don't need to wait exit to ## have all the data inside $stdout. ) ; ## Evaluate some code: $world->eval(q` use Data::Dumper ; print Dumper( {a => 1 , b => 2} ) ; `); $world->close ; ## ensure that everything is finished and flushed. die($stderr) if $stderr ; print $stdout ; $world = undef ; ## Destroy the world. Here the compartment is cleanned.Note that in this example, inside the World is loaded Data::Dumper, but Data::Dumper was loaded only inside of it, keeping the outside normal. Requirements: · Perl


Safe::World Related Software