in reply to Hitting head against wall over Readonly compilation errors

Even with the missing use strict;, the code you posted should not and does not produce the error you said it does.

>perl -c 794916.pl 794916.pl syntax OK

And the error has nothing to do with Readonly. It means you didn't declare a variable you used.

Replies are listed 'Best First'.
Re^2: Hitting head against wall over Readonly compilation errors
by SilasTheMonk (Chaplain) on Sep 12, 2009 at 12:53 UTC
    I only posted the bits exactly relating to the variable concerned. It is of course in a package and has "use stricts" and "use warnings". I also of course thought it should not be generating those errors which is why I am having a problem. I am trying to get a complete example but everytime I get close the problem disappears. The race is not so much who can help me spot the problem, but rather which happens first: I find the problem or I go mad.