Index | index by Group | index by Distribution | index by Vendor | index by creation date | index by Name | Mirrors | Help | Search |
Name: perl-Eval-Closure | Distribution: openSUSE Tumbleweed |
Version: 0.14 | Vendor: openSUSE |
Release: 1.28 | Build date: Tue May 31 12:19:17 2016 |
Group: Development/Libraries/Perl | Build host: reproducible |
Size: 34030 | Source RPM: perl-Eval-Closure-0.14-1.28.src.rpm |
Packager: https://bugs.opensuse.org | |
Url: http://search.cpan.org/dist/Eval-Closure/ | |
Summary: 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.
Artistic-1.0 or GPL-1.0+
* Tue May 31 2016 coolo@suse.com - updated to 0.14 see /usr/share/doc/packages/perl-Eval-Closure/Changes 0.14 2016-05-29 - a couple minor optimizations (dolmen, #8) * Wed May 13 2015 coolo@suse.com - updated to 0.13 see /usr/share/doc/packages/perl-Eval-Closure/Changes 0.13 2015-05-12 - one more fix for blead (eserte, jplesnik, #6) * Tue Apr 14 2015 coolo@suse.com - updated to 0.12 see /usr/share/doc/packages/perl-Eval-Closure/Changes 0.12 2015-01-17 - fix tests under blead (sprout, #4) * Wed Jul 31 2013 coolo@suse.com - updated to 0.11 - add "alias => 1" option for making closure variables actually alias the closed over variables (so the variable referenced in the environment hashref will actually be updated by changes made in the closure). (Toby Inkster, #3) * Sat Jul 27 2013 coolo@suse.com - updated to 0.10 - fix pod links - support lexical subs on 5.18+ * Thu Mar 21 2013 lars@linux-schulserver.de - remove perl-Eval-Closure-old_Test-More.patch - handle the problem with old distributions in %%prep now * Tue May 29 2012 coolo@suse.com - updated to 0.08 - Remove a double layer of string eval that was introduced in 0.07 as an intermediate step in figuring out the unique package thing - it's not necessary with the final implementation, and just makes things slower and hides errors. - the given source is now evaled in a unique package for every eval_closure call (it used to always be evaled in the Eval::Closure package, which was especially buggy). this is to avoid issues where one eval_closure modifies the global environment (by, say, importing a function), which could mess up a later call. unfortunately, this means that the memoization stuff no longer works, since it will result in memoized results using the original package, which defeats the purpose. i'm open to suggestions on how to safely reenable it though. - clean up a few stray lexicals we were still closing over in the eval * Fri Nov 18 2011 coolo@suse.com - update to 0.06 - The dumped source from setting $ENV{EVAL_CLOSURE_PRINT_SOURCE} didn't show the captured variable creation properly. (Dave Rolsky) * Sat Jun 04 2011 lars@linux-schulserver.de - fix build on distributions with old Test::More module ( perl-Eval-Closure-old_Test-More.patch ) * Wed May 04 2011 coolo@opensuse.org - updated to 0.05 - make sure Perl::Tidy doesn't look at @ARGV (rafl) - stop using Memoize, it apparently doesn't work properly under mod_perl in some situations (mateu)
/usr/lib/perl5/vendor_perl/5.40.0/Eval /usr/lib/perl5/vendor_perl/5.40.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
Generated by rpm2html 1.8.1
Fabrice Bellet, Thu Jan 9 23:48:41 2025