http://www.perlmonks.org?node_id=780254


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