Syntactic Confectionery Delight | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Did I miss-apply what you were trying to say? Yes. Change "ok" to {}, and that should work.
Even then, I urge you to Use strict and warnings. It would have saved you from creating this problem in the first place. Instead of silently doing what you didn't want, it would have told you on its death bed,
It's not the best error message in this case, but it would have served better than the mystery you had. If you'd not been able to figure it out, you could have posted it here, and we would have been able to answer immediately rather than groping around. So I say a third time, Use strict and warnings In reply to Re^5: Why is my code assigning the last-retrieved value to all elements in my hash?
by kyle
|
|