Eval::Context

Eval::Context can evalute Perl code in context wrapper.
Download

Eval::Context Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Khemir Nadim ibn Hamouda
  • Publisher web site:
  • http://search.cpan.org/~nkh/PerlBuildSystem-0.44/PBS/Digest.pm

Eval::Context Tags


Eval::Context Description

Eval::Context can evalute Perl code in context wrapper. Eval::Context can evalute Perl code in context wrapper.SYNOPSIS use Eval::Context ; my $context = new Eval::Context(PRE_CODE => "use strict;nuse warnings;n") ; # code will be evaluated with strict and warnings loaded in the context. $context->eval(CODE => 'print "evaluated in an Eval::Context!" ;') ; $context->eval(CODE_FROM_FILE => 'file.pl') ;This module define a subroutine that let you evaluate Perl code in a specific context. The code can be passed directly as a string or as a file name to read from. It also provides some subroutines to let you define and optionally share variables and subroutines between your code and the code you wish to evaluate. Finally there is some support for running your code in a safe compartment.Don't play with fire!Don't start using this module, or any other module, thinking it will let you take code from anywhere and be safe. Read perlsec, Safe, Opcode, Taint and other security related documents. Control your input. Requirements: · Perl


Eval::Context Related Software