for (1) { my $ref = \ $_; $$ref ++; }
( it dies when $ref = \ 1, as expected )
Update: seems to be a perl bug. I'll check out the blead and if it is still there, will report. Thanks everyone!
Update2: Sent patch to https://rt.perl.org/rt3/Public/Bug/Display.html?id=21979. Thanks to ikegami for the place where it should be hacked into.
In reply to ref to read-only alias ... why? by dk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |