in reply to A question about the best way to use subroutines
A really general rule is "one level of abstraction".  Basically, if I'm dealing with the _details_ of one step in a routine, that becomes a subroutine.  Then in the new routine, the details become the top level.
p
p
|
---|
In Section
Seekers of Perl Wisdom