http://www.perlmonks.org?node_id=946496


in reply to ref to read-only alias ... why?

On my Debian-system I have a 5.14.1 and a 5.14.2 version of perl.

5.14.1 does die with the error you expect.

5.14.2 however does not die.

So I guess it is a bug that you should report.

Replies are listed 'Best First'.
Re^2: ref to read-only alias ... why?
by ikegami (Patriarch) on Jan 06, 2012 at 00:39 UTC
Re^2: ref to read-only alias ... why?
by LanX (Saint) on Jan 05, 2012 at 23:45 UTC
      5.14.2 behaves as in your posting.

      5.14.1 dies with "Modification of a read-only value attempted".

        Thanks.

        Looks like they tried to fix this in 14.1 but had to fall back to old behavior.

        Cheers Rolf

Re^2: ref to read-only alias ... why?
by dk (Chaplain) on Jan 05, 2012 at 23:53 UTC
    Thanks, I guess I will. It seemed to me like a bug, but knowing that there's too many arcane special cases in Perl, I decided to ask first.