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

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

I'm trying to improve my programming style and have read perlstyle and will probably pick up the book Code Complete. I have, however, a question about organizing subroutines. What if I have a program that has all of it's logical functions broken up into subroutines and they're not passing each other data. This would work:
func1(); func2(); func3(); sub func1 { } sub func2{ } sub func3{ }
Or would this be better:
func1(); sub func1{ func2(); } sub func2{ func3(); }
I'm just not sure what's the best programming practice even if several options will work. Certainly not one big function with all global variables. TIA...Kevin