Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Common Causes for "Modification of a read-only value attempted"

by techcode (Hermit)
on Jul 15, 2009 at 10:59 UTC ( #780254=note: print w/ replies, xml ) Need Help??


in reply to Common Causes for "Modification of a read-only value attempted"

I've been trying to figure what is going on, as I was getting this error - but wasn't modifying anything that's static.

Turns out - in an array assignment I missed the comma , between two undef's. Such as:

my @array = ('something', 'whatever', undef, undef undef, 'foo', 'bar', undef);

Have you tried freelancing/outsourcing? Check out Scriptlance - I work there since 2003. For more info about Scriptlance and freelancing in general check out my home node.


Comment on Re: Common Causes for "Modification of a read-only value attempted"
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://780254]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (7)
As of 2014-07-12 08:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (238 votes), past polls