| 1 |
Source: libdevel-callsite-perl |
| 2 |
Maintainer: Debian Perl Group <[email protected]> |
| 3 |
Uploaders: Salvatore Bonaccorso <[email protected]> |
| 4 |
Section: perl |
| 5 |
Testsuite: autopkgtest-pkg-perl |
| 6 |
Priority: optional |
| 7 |
Build-Depends: debhelper-compat (= 13), |
| 8 |
perl-xs-dev, |
| 9 |
perl:native |
| 10 |
Standards-Version: 4.6.1 |
| 11 |
Vcs-Browser: https://salsa.debian.org/perl-team/modules/packages/libdevel-callsite-perl |
| 12 |
Vcs-Git: https://salsa.debian.org/perl-team/modules/packages/libdevel-callsite-perl.git |
| 13 |
Homepage: https://metacpan.org/release/Devel-Callsite |
| 14 |
Rules-Requires-Root: no |
| 15 |
|
| 16 |
Package: libdevel-callsite-perl |
| 17 |
Architecture: any |
| 18 |
Depends: ${misc:Depends}, |
| 19 |
${perl:Depends}, |
| 20 |
${shlibs:Depends} |
| 21 |
Description: Perl module to get caller return OP address and Perl interpreter context |
| 22 |
Devel::Callsite module provides subroutines to get the caller return OP |
| 23 |
address and perl interpreter context. |
| 24 |
. |
| 25 |
The callsite() function returns the OP address of the caller, a number, |
| 26 |
one level up from where it was called. It's useful for functions that |
| 27 |
need to uniquely know where they were called, such as Every::every(); |
| 28 |
see Every. Or it can be used to pinpoint a location with finer |
| 29 |
granularity than a line number (see |
| 30 |
http://www.perlmonks.com/?node_id=987268). In conjunction with an OP |
| 31 |
tree disassembly you can know exactly where the caller is located in |
| 32 |
the Perl source. |
| 33 |
. |
| 34 |
The context() function returns the interpreter context as a number. |
| 35 |
This is a fairly unique number together with the call site. |