p5-Eval-Closure - Safely and cleanly create closures via string eval

Property Value
Distribution NetBSD 8.1
Repository NetBSD amd64
Package filename p5-Eval-Closure-0.14nb4.tgz
Package name p5-Eval-Closure
Package version 0.14nb4
Package release -
Package architecture amd64
Package type tgz
Category devel perl5
Homepage https://metacpan.org/release/Eval-Closure
License gnu-gpl-v2 OR artistic
Maintainer -
Download size 8.91 KB
Installed size 17.18 KB
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).


Package Version Architecture Repository
p5-Eval-Closure-0.14nb4.tgz 0.14nb4 i386 NetBSD
p5-Eval-Closure - - -


Name Value
p5-Sub-Exporter -
p5-Try-Tiny -
perl >= 5.30.0 < 5.32.0


Type URL
Mirror ftp.netbsd.org
Binary Package p5-Eval-Closure-0.14nb4.tgz
Source Package p5-Eval-Closure

Install Howto

Install p5-Eval-Closure tgz package:

# pkg_add p5-Eval-Closure

See Also

Package Description
p5-Eval-LineNumbers-0.1nb3.tgz Add line numbers to heredoc blocks that contain perl source code
p5-Event-1.27nb1.tgz Event library for Perl
p5-Event-ExecFlow-0.64nb11.tgz High level API for event-based execution flow control
p5-Event-RPC-1.10nb2.tgz Event based transparent Client/Server RPC framework
p5-Excel-Template-0.34nb4.tgz Perl module for templating Excel files
p5-Excel-Template-Plus-0.06nb4.tgz Extension to the Excel::Template module
p5-Exception-Class-1.44nb2.tgz Perl5 module implementing real exception classes
p5-Exception-Handler-1.004nb10.tgz Report exceptions with formatted text call-stack
p5-Expect-1.35nb3.tgz Perl version of the TCL "expect" tool
p5-Expect-Simple-0.04nb10.tgz Perl 5 module providing a wrapper around the Expect module
p5-Exporter-Lite-0.08nb4.tgz Perl 5 module providing lightweight exporting of variables
p5-Exporter-Tiny-1.002001nb2.tgz Exporter with the features of Sub::Exporter but only core dependencies
p5-ExtUtils-AutoInstall-0.64nb3.tgz Lets Makefile.PL automatically install dependencies
p5-ExtUtils-CBuilder- Perl5 module for compiling and linking C code for Perl modules
p5-ExtUtils-CChecker-0.10nb2.tgz Perl5 configure-check utilities