Gets current callsite and interpreter context
The callsite() function returns the callsite (a number) one level up from where it was called. See the tests for an example. It's useful for functions that need to uniquely know where they were called, such as Every::every() (see devel/p5-Every).
$
pkg install p5-Devel-CallsiteOrigin
devel/p5-Devel-Callsite
Size
40.7KiB
License
GPLv2+, ART10
Maintainer
perl@FreeBSD.org
Dependencies
1 packages
Required by
1 packages