in reply to Re^8: Shouldn't references be readonly? (updated)
in thread Shouldn't LITERAL references be readonly? (updated)
My point is about potential problems in backwards compatibility.
A transformation of a string or a number into another string or number is common, BUT the transformation of refs is impossible.
Hence it's far more likely that legacy code will break if something like $_++ became illegal for an aliased input like 3+4 .
Same code for refs wouldn't make sense at all.
I can't come up with more intuitive examples, but I'm sure those exist.
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
In Section
Seekers of Perl Wisdom