Missing the $ before array[6] in the second elsif.
In reply to Re: How can I solve this hash issue? by GotToBTru in thread How can I solve this hash issue? by adur