in reply to Placement of Subs
Unless one of the reasons above, I put my subs at the bottom. Lexical scoped variables that should be visible throughout at the top of the file. If I want to hide anything, I'll put the lexically scoped variables and the subs for them in their own enclosing block. The way I code, "unintended" globals are not a problem. I always use my on everything in a sub, unless... the referenced variable is supposed to be visible to the sub from outside. In general, globals usually are bad but some people would make it out to be a most vile offense. Like most things, they have their place.
-Lee
"To be civilized is to deny one's nature."