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

Baffled has asked for the wisdom of the Perl Monks concerning the following question:

You can end this string, the problem has been determined a missing / at the end of a url in the lib pointing to the dir that the array was trying to read. Following advice gathered from this forum I added use CGI::Carp qw(fatalsToBrowser); to my main script page, and lo and behold, this is what I found....

Modification of non-creatable array value attempted, subscript -1 at /var/www/vhosts/mysite.com/cgi-bin/gallery.cgi line 40, <THEFILE> line 48.

Now pardon my ignorance but Im just happy I now have someway to try to resolve this problem. But Im a bit confused. This similar message comes up in various parts of my site, each time a different cgi file is named, ive pulled down 5 or so and opened them. This messages states line 00, <THEFILE> line 00 which im unsure what it means. 00 has different numbers like some said 150 or 48 and so on. I go line number 150 in the code or what ever line it says, but why two lines. Why can one be on line 150 and then the <THEFILE> then it says line 40? Does this relate to the line of code at all? or is there some reference numbers to known problems? or something else? Can someone explain this error message in more detail? Oh yeah, and PS- What is the subscript -1 mean?