in reply to Re^2: Shouldn't references be readonly?
in thread Shouldn't LITERAL references be readonly? (updated)
Perl doesn't have literal arrays. It has constructors which will create a reference to an anonymous array, where the elements of that array are initially assigned to by copying the values from a list which may or may not be literal. E.g.
Should @$ar1 and @$ar2 be treated differently, and if so, why?$ar1 = [ 1,2,3 ]; $ar2 = [ 1,2,3,$four ];
Dave.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: Shouldn't references be readonly?
by LanX (Saint) on Aug 05, 2020 at 17:56 UTC | |
by dave_the_m (Monsignor) on Aug 05, 2020 at 18:32 UTC | |
by LanX (Saint) on Aug 05, 2020 at 18:44 UTC | |
by LanX (Saint) on Aug 05, 2020 at 20:29 UTC | |
by haukex (Archbishop) on Aug 05, 2020 at 20:49 UTC | |
by Fletch (Bishop) on Aug 05, 2020 at 21:16 UTC | |
by LanX (Saint) on Aug 05, 2020 at 21:11 UTC | |
Re^4: Shouldn't references be readonly?
by LanX (Saint) on Aug 05, 2020 at 18:30 UTC | |
by dave_the_m (Monsignor) on Aug 05, 2020 at 18:38 UTC | |
by LanX (Saint) on Aug 05, 2020 at 18:51 UTC | |
by dave_the_m (Monsignor) on Aug 05, 2020 at 21:20 UTC | |
by LanX (Saint) on Aug 05, 2020 at 21:41 UTC | |
by LanX (Saint) on Aug 05, 2020 at 21:35 UTC | |
|
In Section
Seekers of Perl Wisdom