for others who are just starting out...
...like me, and have spent time tearing your hair out over "Global symbol $foo requires strict checking"-type errors and have occasionally been reduced to finding sections of code that do something like what you want to and copying them, I come bearing tutorials:
Coping with Scoping
It made so much suddenly make sense.
Coping with Scoping
It made so much suddenly make sense.