Think about Loose Coupling | |
PerlMonks |
Re3: Surpised by foreach iterator limitationby dragonchild (Archbishop) |
on Apr 08, 2003 at 17:18 UTC ( [id://249015]=note: print w/replies, xml ) | Need Help?? |
Explain to me why this wouldn't work:
The point here is that you're stuck in the mode of "I have to reference things the same way". Much better is to say "I have an array of stuff. Let's work with that array." Remember - You used to call it $p{data} because it was a member of that hash. Now, it's not. So, don't call it that. Embrace the refactoring goodness. ------ Don't go borrowing trouble. For programmers, this means Worry only about what you need to implement. Please remember that I'm crufty and crochety. All opinions are purely mine and all code is untested, unless otherwise specified.
In Section
Seekers of Perl Wisdom
|
|