in reply to Global symbol requires explicit package name

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.

Sorry if my advice was wrong.

Replies are listed 'Best First'.
Re^2: Global symbol requires explicit package name
by bebe (Novice) on Aug 13, 2012 at 17:05 UTC

    Thank you so much for your reply. I ended up commenting out this print statement for now since I don't seem to be able to get this program to work. I now get this new error
    "se of uninitialized value in string eq at sharingpoes.pl line 30.
    Use of uninitialized value in string eq at sharingpoes.pl line 30.
    I'm the cutest kitty ever
    Use of uninitialized value in concatenation (.) or string at sharingpoes.pl line 31.
    array[0] =
    " any idea how I can fix this? Thank you so much!!!

      Try running your code in the debugger. Use n and x commands.

      I also tried to look for line 30 in the code you posted, but couldn't find any eq in it. Can you post a minimal code example, properly formatted?

      Sorry if my advice was wrong.
        Thank you very much aitap and 2teez. the fix actually worked!!! I just figured out I had a typo!
        thank you sooooo very much for all your help!!!
        I appreciate it!!