In the OP's case the aliased $x and 1 should have the same reference.
But there is no point in making temporarily generated values read only, almost all code would break then.
Cheers Rolf
(addicted to the Perl Programming Language :)
see Wikisyntax for the Monastery
In reply to Re^4: Modification of a read-only value attempted?!?
by LanX
in thread Modification of a read-only value attempted?!?
by kikuchiyo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |