FreeBSD.software
Home/devel/p5-B-Hooks-AtRuntime

p5-B-Hooks-AtRuntime

8devel

Lower blocks from compile time to runtime

B::Hooks::AtRuntime allows code that runs at compile-time to do something at runtime. A block passed to at_runtime gets compiled into the code that's currently compiling, and will be called when control reaches that point at runtime. In the example in the SYNOPSIS, the warnings will occur in order, and if that section of code runs more than once, so will all three warnings.

$pkg install p5-B-Hooks-AtRuntime
metacpan.org/dist/B-Hooks-AtRuntime
Origin
devel/p5-B-Hooks-AtRuntime
Size
26.2KiB
License
BSD2CLAUSE
Maintainer
sunpoet@FreeBSD.org
Dependencies
3 packages
Required by
1 packages

Dependencies (3)

Required By (1)