XP is just a number | |
PerlMonks |
Re: Perl Module Useageby bart (Canon) |
on Apr 10, 2003 at 22:59 UTC ( [id://249765]=note: print w/replies, xml ) | Need Help?? |
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.
In Section
Seekers of Perl Wisdom
|
|