Source Package: perl-lexical-underscore (0.004-25.fc43)
Access your caller's lexical underscore
Starting with Perl 5.10, it is possible to create a lexical version of the Perl default variable $_. It is occasionally useful for a subroutine to be able to access its caller's $_ variable regardless of whether it was lexical or not. The "(_)" sub prototype is the official way to do so, however there are sometimes disadvantages to this. The "lexical::underscore" function returns a scalar reference to either a lexical $_ variable somewhere up the call stack (using PadWalker magic), or to the global $_ if there was no lexical version.
Package information
- Homepage
- [https://metacpan.org/release/lexical-underscore]
- License
- GPL-1.0-or-later OR Artistic-1.0-Perl
- Mantenedor del paquete downstream
- jplesnik, ppisarObserved Nov 24, 2026 [source]
The following binary packages are built from this source package:
- perl-lexical-underscore
Access your caller's lexical underscore
