in reply to -foo not readonly in fun(-foo => 1) in perl v5.8.7

I've got perl 5.10, and get this:

# perl script12 readonly(lonely)=134217728 Modification of a read-only value attempted at f2 line 7. readonly(named)=134217728 Modification of a read-only value attempted at f2 line 7. readonly(-named)=0 readonly(-loop)=0 readonly(-loop)=0 readonly(-loop)=0 readonly(-loop)=0 readonly(-loop)=0

Replies are listed 'Best First'.
Re^2: -foo not readonly in fun(-foo => 1} in perl v5.8.7
by apl (Monsignor) on Apr 20, 2008 at 13:29 UTC
    Or to put it another way, the OP was trying to set the string 'lonely' to the value of 'xxx'.