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)
In reply to Re: WHAT IS WRONG TO PASS PARAMETER TO THE ARRAY?
by n3toy
in thread WHAT IS WRONG TO PASS PARAMETER TO THE ARRAY?
by courierb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |