http://qs321.pair.com?node_id=150240

greenFox has asked for the wisdom of the Perl Monks concerning the following question:

I have a habit of putting all my subs at the bottom of the file. I have always figured that any-one looking at the code only needs look at the code for a sub if they need to, the function of the sub should be apparent from its name. And when I am coding I write a bit at a time in a modular fashion and I don't want to have to go tripping over all those subs to get the programs main loop.

I have noticed though that some coders have their subs at the top of the file. perlman:perlstyle is quiet on the subject. I am wondering if there is any reason to prefer one style over the other

--
my $chainsaw = 'Perl';