in reply to Error hash declaration
Global symbol "$hashpfstates" requires explicit package name
Look closely: it says "hashpfstates", not "hashofstates". So in addition to what NetWallah said, you have (or had) a typo there.