p5-Eval-Closure-0.14nb3

Basic Info:

Safely and cleanly create closures via string eval

homepage: http://search.cpan.org/~doy/Eval-Closure/
license: gnu-gpl-v2 OR artistic
install size: 17588
build date: 2019-01-29 19:30:06 +0000
package file: p5-Eval-Closure-0.14nb3.tgz
package size: 9803

Description:

String eval is often used for dynamic code generation. For instance,
Moose uses it heavily, to generate inlined versions of accessors
and constructors, which speeds code up at runtime by a significant
amount. String eval is not without its issues however - it's
difficult to control the scope it's used in (which determines which
variables are in scope inside the eval), and it can be quite slow,
especially if doing a large number of evals.

This module attempts to solve both of those problems. It provides
an eval_closure function, which evals a string in a clean environment,
other than a fixed list of specified variables. It also caches the
result of the eval, so that doing repeated evals of the same source,
even with a different environment, will be much faster (but note
that the description is part of the string to be evaled, so it must
also be the same (or non-existent) if caching is to work properly).

Homepage:
http://search.cpan.org/~doy/Eval-Closure/

Provides:

Requires:

Depends:

p5-Sub-Exporter-[0-9]*
p5-Try-Tiny-[0-9]*
perl>=5.28.0<5.30.0

Package List

File NameDateSize
lib/perl5/vendor_perl/5.28.0/Eval/Closure.pm2016-05-28 22:439913 bytes
lib/perl5/vendor_perl/5.28.0/x86_64-linux-thread-multi/auto/Eval/Closure/.packlist2019-01-29 12:30104 bytes
lib/perl5/vendor_perl/man/man3/Eval::Closure.32019-01-29 12:307571 bytes