The stupid question is the question not asked | |
PerlMonks |
Re: A question about the best way to use subroutinesby indapa (Monk) |
on Mar 25, 2001 at 08:35 UTC ( [id://66953]=note: print w/replies, xml ) | Need Help?? |
One of my CS instructors in college said if a sub-routine was bigger than the palm of your hand then the subroutine was too big.
I guess alot of it up to the discretion of the programmer. I had a look at a Perl program where there was alot of repetitive code, that if it had been put in its own subroutine, would have made the program alot shorter, easier to debug, and maintain.(And understand!) Just putting in my two cents...
In Section
Seekers of Perl Wisdom
|
|