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.
Release | Stable | Testing |
---|---|---|
Fedora Rawhide | 0.004-22.fc40 | - |
Fedora 40 | 0.004-22.fc40 | - |
Fedora 39 | 0.004-20.fc39 | - |
Fedora 38 | 0.004-19.fc38 | - |
You can contact the maintainers of this package via email at
perl-lexical-underscore dash maintainers at fedoraproject dot org
.