Package: perl-Eval-Closure (0.14-1.22)
Safely and Cleanly Create Closures Via String Eval
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's easy to miss compilation errors, since eval catches them and sticks them in $@ instead. This module attempts to solve these problems. It provides an 'eval_closure' function, which evals a string in a clean environment, other than a fixed list of specified variables. Compilation errors are rethrown automatically.
Package information
- Homepage
- [http://search.cpan.org/dist/Eval-Closure/]
- License
- Artistic-1.0 or GPL-1.0+
- Downstream package maintainer
- Unknown: not reported in the indexed source
- Source package
- [perl-Eval-Closure]
- Software project
- [perl-Eval-Closure]
Versions and downloads for perl-Eval-Closure
| Version / release | Architecture / repository | Package size | Installed size | Files | Publisher repository artifact |
|---|---|---|---|---|---|
| 0.14-1.22leap-15.6 / oss | noarchopenSUSE Leap 15.6 · OSS · multi-architecture | 25 KiB | 33 KiB | list of files | perl-Eval-Closure-0.14-1.22.noarch.rpm |
About these downloads
Each row is recorded package-index metadata for one version, architecture, suite, and repository. Names, URLs, and sizes are source-reported; a link is a potentially mutable retrieval location, not an OpenFactory redistribution claim or proof that OpenFactory retained the artifact bytes.
Dependencies and recommendations for perl-Eval-Closure
dep: perl(:MODULE_COMPAT_5.26.1)
Package not available
rec: perl(Devel::LexAlias) (>= 0.05)
Package not available
rec: perl(Perl::Tidy)
Package not available
Package file paths (8)
Paths come from the repository package-file index for the observed builds. They describe archive/package associations, not every file that will exist on a running system after maintainer scripts, alternatives, generated state, diversions, or installation choices.
- /usr/lib/perl5/vendor_perl/5.26.1/Eval
- /usr/lib/perl5/vendor_perl/5.26.1/Eval/Closure.pm
- /usr/lib/perl5/vendor_perl/5.26.1/x86_64-linux-thread-multi
- /usr/share/doc/packages/perl-Eval-Closure
- /usr/share/doc/packages/perl-Eval-Closure/Changes
- /usr/share/doc/packages/perl-Eval-Closure/LICENSE
- /usr/share/doc/packages/perl-Eval-Closure/README
- /usr/share/man/man3/Eval::Closure.3pm.gz
Field source: openSUSE Leap 15.6 OSS
