Mon, 09 Nov 2026 04:53:30 UTC Log in
Safely and cleanly create closures via string eval 23.60 KB built 2026-10-16 19:17:12 GMT

Description

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).

Dependencies

16 total
Requires14
  • perl(Carp)
  • perl(Devel::LexAlias) >= 0.05
  • perl(Exporter)
  • perl(Perl::Tidy)
  • perl(Scalar::Util)
  • perl(constant)
  • perl(overload)
  • perl(strict)
  • perl(warnings)
  • perl-libs
  • rpmlib(CompressedFileNames) <= 3.0.4-1
  • rpmlib(FileDigests) <= 4.6.0-1
  • rpmlib(PayloadFilesHavePrefix) <= 4.0-1
  • rpmlib(PayloadIsZstd) <= 5.4.18-1
Provides2
  • perl(Eval::Closure) = 0.14
  • perl-Eval-Closure = 0.14-28.fc45
ObsoletesNo Obsoletes
ConflictsNo Conflicts
RecommendsNo Recommends
SuggestsNo Suggests
SupplementsNo Supplements
EnhancesNo Enhances

Files

8
Files 1–8 of 8

Component of

buildroots that installed this RPM
Buildroot descending sort Created State
f45-build-56367-981 2026-11-03 14:41:41 expired
f45-build-56355-978 2026-11-03 13:26:55 expired
f45-build-56337-973 2026-10-30 16:32:29 expired
f45-build-56100-966 2026-10-30 14:00:02 expired
f45-build-55328-942 2026-10-30 01:42:24 expired
f45-build-54804-937 2026-10-30 00:14:09 expired
f45-build-52886-913 2026-10-29 19:18:10 expired
f45-build-51778-904 2026-10-29 16:49:20 expired
f45-build-side-gcc-51099-894 2026-10-29 15:10:14 expired
f45-build-50192-888 2026-10-29 13:04:33 expired
f45-build-50165-888 2026-10-29 13:01:16 expired
f45-build-50108-887 2026-10-29 12:51:55 expired
f45-build-49838-885 2026-10-29 12:20:39 expired
f45-build-48391-874 2026-10-29 09:41:45 expired
f45-build-48386-874 2026-10-29 09:40:42 expired
f45-build-48384-874 2026-10-29 09:39:44 expired
f45-build-48382-874 2026-10-29 09:39:41 expired
f45-build-48381-874 2026-10-29 09:39:41 expired
f45-build-48380-874 2026-10-29 09:39:40 expired
f45-build-48379-874 2026-10-29 09:39:40 expired
f45-build-48378-874 2026-10-29 09:38:51 expired
f45-build-48373-874 2026-10-29 09:37:27 expired
f45-build-48362-874 2026-10-29 09:35:39 expired
f45-build-48361-874 2026-10-29 09:35:38 expired
f45-build-48359-874 2026-10-29 09:35:32 expired
f45-build-48353-874 2026-10-29 09:34:29 expired
f45-build-48352-874 2026-10-29 09:34:13 expired
f45-build-48350-874 2026-10-29 09:33:44 expired
f45-build-48349-874 2026-10-29 09:33:31 expired
f45-build-48344-874 2026-10-29 09:31:50 expired
f45-build-48343-874 2026-10-29 09:31:36 expired
f45-build-48341-874 2026-10-29 09:30:25 expired
f45-build-48320-874 2026-10-29 09:28:34 expired
f45-build-48305-874 2026-10-29 09:28:25 expired
f45-build-48304-874 2026-10-29 09:28:25 expired
f45-build-48303-874 2026-10-29 09:28:25 expired
f45-build-48301-874 2026-10-29 09:28:24 expired
f45-build-48300-874 2026-10-29 09:28:21 expired
f45-build-48297-873 2026-10-29 09:25:40 expired
f45-build-48296-873 2026-10-29 09:25:39 expired
f45-build-48278-873 2026-10-29 09:25:26 expired
f45-build-48275-873 2026-10-29 09:25:25 expired
f45-build-48273-873 2026-10-29 09:24:34 expired
f45-build-48271-873 2026-10-29 09:24:21 expired
f45-build-48268-873 2026-10-29 09:24:21 expired
f45-build-48254-873 2026-10-29 09:23:25 expired
f45-build-48253-873 2026-10-29 09:23:23 expired
f45-build-48251-873 2026-10-29 09:23:18 expired
f45-build-48247-873 2026-10-29 09:21:25 expired
f45-build-48246-873 2026-10-29 09:21:12 expired
Buildroots 1–50 of 330 Next →
of 7