Your skill will accomplish what the force of many cannot |
|
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
I think subroutines are supposed to be not only a
shortcut when a piece of code is used a lot of times.
First of all, they are linguistic tools to hide things. In other words, to build abstractions. I think programs are built on abstractions. So you could use subroutines even if a piece of code is used only once.It will increases readability, and maybe you will easier reuse that piece of code. In reply to Re: A question about the best way to use subroutines
by larsen
|
|