it's possible to alias single array elements
use warnings; use strict; use Data::Dump qw/pp/; my @a= ('a','b','c','d'); *b = \$a[1]; $b ="X"; pp @a
("a", "X", "c", "d")
But wasn't able yet to bind the alias to another array element.
But I seem to remember seeing it done in the past ...°
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
FootballPerl is like chess, only without the dice
°) yep, see arr_alias() in Re: Selecting Ranges of 2-Dimensional Data (array of aliases)
In reply to Re: Selecting Ranges of 2-Dimensional Data
by LanX
in thread Selecting Ranges of 2-Dimensional Data
by haukex
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |