Perl Monk, Perl Meditation | |
PerlMonks |
Re: A question about the best way to use subroutinesby petral (Curate) |
on Mar 27, 2001 at 08:48 UTC ( [id://67427]=note: print w/replies, xml ) | Need Help?? |
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
In Section
Seekers of Perl Wisdom
|
|