How about comprehensibility?
Subroutines as short as possible; hopefully never longer than what fits on screen. Smaller is better ( < 20-25 lines?).
With subroutines, testing becomes easier or even feasible.
(And yes, reusability: you'll end up with subs anyway, if the script will have any life beyond running once.)
In reply to Re: Subroutines versus straight top to bottom scripts
by erix
in thread Subroutines versus straight top to bottom scripts
by ghenry
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |