http://www.perlmonks.org?node_id=91319


in reply to To sub or not to sub, that is the question?

...and when to cut and paste code...

The idea of cut and paste code makes me shudder as it tends to create bugs very easily (speaking from experience), the checking and correction of which may well consume any time saved by the cut and paste operation. Fortunately I think it can often be avoided:

Finally, here's another good Monastery thread on this topic: When do you function? - I'm certain there are more.

--
I'd like to be able to assign to an luser