in reply to Restricted assignment

I guess it is exactly what the error message told you.
perl -we 'print $x'
We need a little more information. Perhaps a part of your code.
Boris