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

Property Value
Distribution ROSA 2016.1
Repository ROSA Main Updates x86_64
Package name perl-Eval-Closure
Package version 0.130.0
Package release 4-rosa2016.1
Package architecture noarch
Package type rpm
Installed size 34.29 KB
Download size 19.70 KB
Official Mirror
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
perl-Eval-Closure-0.130.0-4-rosa2016.1.noarch.rpm 0.130.0 noarch ROSA Main Updates
perl-Eval-Closure-0.130.0-3-rosa2016.1.noarch.rpm 0.130.0 noarch ROSA Contrib
perl-Eval-Closure-0.130.0-3-rosa2016.1.noarch.rpm 0.130.0 noarch ROSA Contrib
perl-Eval-Closure - - -


Name Value
perl(Carp) -
perl(Exporter) -
perl(Scalar::Util) -
perl(Try::Tiny) -
perl(abi) >= 5.20.3


Name Value
perl(Eval::Closure) == 0.130.0
perl-Eval-Closure == 0.130.0-4:2016.1


Type URL
Binary Package perl-Eval-Closure-0.130.0-4-rosa2016.1.noarch.rpm
Source Package perl-Eval-Closure-0.130.0-4.src.rpm

Install Howto

  1. Enable ROSA Main Updates repository on Install and Remove Software
  2. Update packages list:
    # urpmi.update -a
  3. Install perl-Eval-Closure rpm package:
    # urpmi perl-Eval-Closure




2017-08-22 - Denis Silakov <> 0.130.0-4
- (eafea9c) Move to main

See Also

Package Description
perl-Exception-Class-1.420.0-1-rosa2016.1.noarch.rpm A module that allows you to declare real exception classes in Perl
perl-ExtUtils-Depends-0.405.0-1-rosa2016.1.noarch.rpm Perl module for further extending extensions
perl-ExtUtils-PkgConfig-1.160.0-1-rosa2016.1.noarch.rpm Perl module for further extending extensions
perl-FCGI-0.780.0-1-rosa2016.1.x86_64.rpm A Fast CGI module for Perl
perl-File-Copy-Recursive-0.440.0-1-rosa2016.1.noarch.rpm Perl module for recursively copying files and directories
perl-File-DesktopEntry-0.220.0-1-rosa2016.1.noarch.rpm Object to handle .desktop files
perl-File-Find-Rule-0.340.0-1-rosa2016.1.noarch.rpm Alternative interface to File::Find
perl-File-Remove-1.570.0-1-rosa2016.1.noarch.rpm Remove files and directories
perl-File-ShareDir-1.104.0-11-rosa2016.1.noarch.rpm Locate per-dist and per-module shared files
perl-File-ShareDir-Install-0.130.0-1-rosa2016.1.noarch.rpm Install shared files
perl-File-Slurp-Tiny-0.4.0-1-rosa2016.1.noarch.rpm A simple, sane and efficient file slurper
perl-File-pushd-1.9.0-4-rosa2016.1.noarch.rpm Change directory temporarily for a limited scope
perl-Font-TTF-1.50.0-4-rosa2016.1.noarch.rpm Perl module for TrueType Font hacking
perl-Git-2.19.1-1-rosa2016.1.x86_64.rpm Perl interface to Git
perl-Glib-1.326.0-1-rosa2016.1.x86_64.rpm Perl module for the glib-2.x library