p5-Eval-Closure-0.14nb3.tgz


Advertisement

Description

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

Property Value
Distribution NetBSD 7.1
Repository NetBSD amd64
Package name p5-Eval-Closure
Package version 0.14nb3
Package architecture amd64
Package type tgz
Package license gnu-gpl-v2 OR artistic
Installed size 17.18 KB
Download size 8.69 KB
Official Mirror ftp.netbsd.org
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/
Categories: devel, perl5

Alternatives

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

Requires

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

Download

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