Try printing $state->[$i][$j]." \n" instead of print "$state[$i][$j] \n";. What line does that error message relate to? See perldoc perlreftut for more info.
Edit: well, I was late with this.
In reply to Re: Global symbol requires explicit package name
by aitap
in thread Global symbol requires explicit package name
by bebe
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |