Since Perl has both an explicit $reference and a @list form of its data structures, it might be difficult to point out "the" literal form.
> I also fail to see why Perl should prevent it.
For the same reason why it's prevented with other readonly values like literal scalars ... to catch bugs with aliases.
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
In reply to Re^2: Shouldn't references be readonly?
by LanX
in thread Shouldn't LITERAL references be readonly? (updated)
by LanX
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |