in reply to Re^6: Pointers and References
in thread Pointers and References
Array is
So @a = (1,2,3) means step by step
I hope it's clearer now.
If it's a consolation, Larry occasionally confused the terminology too, e.g. in wantarray :)
> (Modification of a read-only value attempted)
That's because 1,2,3 are literals which are read only. Use variables (sic) and you can change them in the loop. ;)
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^8: Pointers and References
by bliako (Abbot) on Nov 24, 2020 at 20:38 UTC | |
by AnomalousMonk (Archbishop) on Nov 24, 2020 at 22:18 UTC | |
by LanX (Saint) on Nov 25, 2020 at 13:55 UTC | |
by bliako (Abbot) on Nov 25, 2020 at 16:08 UTC | |
|
Re^8: Pointers and References
by Leudwinus (Scribe) on Nov 25, 2020 at 15:33 UTC | |
by LanX (Saint) on Nov 25, 2020 at 16:14 UTC | |
by AnomalousMonk (Archbishop) on Nov 25, 2020 at 20:55 UTC | |
by LanX (Saint) on Nov 25, 2020 at 21:21 UTC |