in reply to Perl Module Useage
My mind doesn't work that way. In general, if I need a piece of code more than once in a script, or might so, I turn it into a sub. If while doing that I get the feeling I'm solving a generic problem, not one specifically aimed at the specific problem the script it's trying to solve, I turn it into a module. That is, even before I ever used it, even just once. Why shouldn't I. It's not that much extra work.