{"added":null,"apiVersion":1,"behindSince":null,"buildDepends":[],"categories":["devel","perl5"],"comment":"safely and cleanly create closures via string eval ","compare":"/compare/p5-eval-closure/index.json","dependentCount":null,"description":"String eval is often used for dynamic code generation. For instance,\nMoose uses it heavily, to generate inlined versions of accessors and\nconstructors, which speeds code up at runtime by a significant amount.\nString eval is not without its issues however - it's difficult to\ncontrol the scope it's used in (which determines which variables are in\nscope inside the eval), and it's easy to miss compilation errors, since\neval catches them and sticks them in $@ instead.\n\nThis module attempts to solve these problems. It provides an\neval_closure function, which evals a string in a clean environment,\nother than a fixed list of specified variables. Compilation errors are\nrethrown automatically.","flavors":[],"html":"https://daemonports.org/openbsd/devel/p5-Eval-Closure/","kind":"port","lastUpdate":null,"license":null,"maintainer":"The OpenBSD ports mailing-list \u003cports@openbsd.org\u003e","name":"p5-Eval-Closure","newest":true,"newestVersion":"0.14","noVulnData":true,"origin":"devel/p5-Eval-Closure","otherSystems":[{"maintainer":"perl@FreeBSD.org","newest":true,"origin":"devel/p5-Eval-Closure","path":"/devel/p5-Eval-Closure/","system":"FreeBSD","version":"0.14"},{"maintainer":"pkgsrc-users@NetBSD.org","newest":true,"origin":"devel/p5-Eval-Closure","path":"/netbsd/devel/p5-Eval-Closure/","system":"NetBSD","updated":"2026-07-16","version":"0.14nb11"},{"maintainer":"perl@FreeBSD.org","newest":true,"origin":"devel/p5-Eval-Closure","path":"/dragonfly/devel/p5-Eval-Closure/","system":"DragonFly","version":"0.14"},{"maintainer":"ports@MidnightBSD.org","newest":true,"noVulnData":true,"origin":"devel/p5-Eval-Closure","path":"/midnightbsd/devel/p5-Eval-Closure/","system":"MidnightBSD","version":"0.14"},{"maintainer":"perl@FreeBSD.org","newest":true,"noVulnData":true,"origin":"devel/p5-Eval-Closure","path":"","system":"HardenedBSD","version":"0.14"},{"maintainer":"perl@FreeBSD.org","newest":true,"noVulnData":true,"origin":"devel/p5-Eval-Closure","path":"","system":"GhostBSD","version":"0.14"},{"maintainer":"perl@FreeBSD.org","newest":true,"noVulnData":true,"origin":"devel/p5-Eval-Closure","path":"","system":"OPNsense","version":"0.14"}],"packages":null,"pkgName":"p5-Eval-Closure-0.14p0","related":null,"repository":"OpenBSD ports","requiredBy":["devel/p5-Moose","devel/p5-MooseX-Method-Signatures","devel/p5-Params-ValidationCompiler","devel/p5-Specio"],"requiredByCount":4,"runDepends":["devel/p5-Try-Tiny"],"status":null,"system":"openbsd","systemLabel":"OpenBSD","version":"0.14p0","versions":null,"vulnerabilities":null,"www":"https://metacpan.org/release/Eval-Closure"}
