in reply to Re^2: Global symbol requires explicit package name
in thread Global symbol requires explicit package name

You declared $state. If it contains an array reference, you have to dereference it.


Improve your skills with Modern Perl: the free book.