in reply to Going back in time...
(That last one bit me really badly in my first big project ... shift/unshift set the meme in my head, and when i typed it and ran my program, sure enough $foo was undefined ... after that line was executed)