in reply to typeglob & my | our
Lexical variables (my) have no builtin (general) aliasing mechanism.
UPDATE:
For the records, there is a hack (!) to alias lexical scalars by using one element for loops:
for my $alias ($orig) { ... }
another workaround would be to use tie.
|
|---|