And it solves your problem nicely, and probably more efficiently than anything involving typeglobs:
alias my @bar = @$foo;
UPDATE: It actually benchmarks faster than local *bar = $foo on my machine, with the benefit of being truly lexically scoped.
In reply to Re^3: Type globs, strict, and lexical variables
by xmath
in thread Type globs, strict, and lexical variables
by cems2
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |