Package: perl-Eval-Closure (0.14-160000.2.2)
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+
- Mantenedor do pacote downstream
- Desconhecido: não informado na fonte indexada
- Pacote fonte
- [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-160000.2.2leap-16.0 / oss | noarchopenSUSE Leap 16.0 · OSS · multi-architecture | 25 KiB | 33 KiB | list of files | perl-Eval-Closure-0.14-160000.2.2.noarch.rpm |
About these downloads
Cada linha é metadado do índice de pacotes para uma versão, arquitetura, suite e repositório. Nomes, URLs e tamanhos vêm da fonte; um link é um ponto de obtenção mutável, não uma redistribuição da OpenFactory.
Dependencies and recommendations for perl-Eval-Closure
dep: perl(:MODULE_COMPAT_5.42.0)
Package not available
rec: perl(Devel::LexAlias) (>= 0.05)
Package not available
rec: perl(Perl::Tidy)
Package not available
Caminhos de arquivo do pacote (7)
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.42.0/Eval
- /usr/lib/perl5/vendor_perl/5.42.0/Eval/Closure.pm
- /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 16.0 OSS
