I've used the closure solution with derby's fix which has given me an insight into a practical use for closures. 'our' worked as well but I've not seen it used here much before and my instinct says to stay away from globalish things.
Cheers for the recursion tips anon monk reads almost like a tutorial. Recursion is a way of thinking I'm determined to bend my head around