http://www.perlmonks.org?node_id=11125819


in reply to Re^2: why avoid & on function call
in thread why avoid & on function call

From a style point of view (he said, donning his asbestos firesuit), I like having the 'main' part of the routine first, so that at a quick glance of the file, I can see what's going on. If I want further detail, I can scroll down to look at the routines I'm interested in.

We style things the same :)
It is very rare that I arrange code differently to this.

Usually I add an explicit exit statement to the end of the 'main' part of the code before the subroutines so it is obvious where the 'main' block ends.