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.
In reply to Re: Hitting head against wall over Readonly compilation errors
by ikegami
in thread Hitting head against wall over Readonly compilation errors
by SilasTheMonk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |