Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

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

by techcode (Hermit)
on Jul 15, 2009 at 10:59 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://780254]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (3)
As of 2024-04-19 21:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found