Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
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
Domain Nodelet?
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 about the Monastery: (2)
As of 2023-03-22 23:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which type of climate do you prefer to live in?






    Results (60 votes). Check out past polls.

    Notices?