in reply to Selecting Ranges of 2-Dimensional Data
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)
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Selecting Ranges of 2-Dimensional Data
by haukex (Archbishop) on Oct 26, 2018 at 15:53 UTC | |
by LanX (Saint) on Oct 26, 2018 at 15:55 UTC | |
by ikegami (Patriarch) on Oct 28, 2018 at 22:17 UTC | |
by LanX (Saint) on Oct 29, 2018 at 01:00 UTC |