Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

Re: ref to read-only alias ... why?

by morgon (Curate)
on Jan 05, 2012 at 23:40 UTC ( #946496=note: print w/replies, xml ) Need Help??

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 (Pope) on Jan 06, 2012 at 00:39 UTC
Re^2: ref to read-only alias ... why?
by LanX (Chancellor) 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".


        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.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://946496]
[Tanktalus]: Does anyone have a link to somewhere that explains why it's a bad idea to spit out text on stdout/stderr in the login scripts when it's a non-interactive shell?

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (7)
As of 2017-04-25 21:15 GMT
Find Nodes?
    Voting Booth?
    I'm a fool:

    Results (464 votes). Check out past polls.