Access your caller's lexical underscore
20.62 KB
built 2026-10-17 03:00:42 GMT
Description
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.
Dependencies
11 totalRequires9
- perl(:VERSION) >= 5.8.0
- perl(if)
- perl(strict)
- perl(warnings)
- perl-libs
- rpmlib(CompressedFileNames) <= 3.0.4-1
- rpmlib(FileDigests) <= 4.6.0-1
- rpmlib(PayloadFilesHavePrefix) <= 4.0-1
- rpmlib(PayloadIsZstd) <= 5.4.18-1
Provides2
- perl(lexical::underscore) = 0.004
- perl-lexical-underscore = 0.004-27.fc45
ObsoletesNo Obsoletes
ConflictsNo Conflicts
RecommendsNo Recommends
SuggestsNo Suggests
SupplementsNo Supplements
EnhancesNo Enhances
Files
10
Files 1–10 of 10
Component of
buildroots that installed this RPMNo Buildroots
