Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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 imbibing at the Monastery: (7)
As of 2015-07-08 01:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (93 votes), past polls