aboutsummaryrefslogtreecommitdiff
path: root/devel/p5-Devel-LexAlias/pkg-descr
blob: 3f815dfe2efdd066bd52f430364aa5edbd27603c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Description from the home page:

Devel::LexAlias provides the ability to alias a lexical variable in a
subroutines scope to one of your choosing.

If you don't know why you'd want to do this, I'd suggest that you skip
this module. If you think you have a use for it, I'd insist on it.

Still here?

lexalias( $where, $name, $variable )

    $where refers to the subroutine in which to alias the lexical, it
     can be a coderef or a call level such that you'd give to caller

    $name is the name of the lexical within that subroutine

    $variable is a reference to the variable to install at that location

WWW: https://metacpan.org/release/Devel-LexAlias