http://qs321.pair.com?node_id=786071


in reply to WHAT IS WRONG TO PASS PARAMETER TO THE ARRAY?

In line 4 you are assigning an array of hashes to @partofcookie, then in line 5 you are assigning a variable to @partofcookie, overwriting your original array of hashes.

(Also, no need to include the line numbers, see Writeup Formatting Tips)