|
|
| There's more than one way to do things | |
| PerlMonks |
Re: Creating module files from subroutinesby frankus (Priest) |
| on Apr 17, 2001 at 10:57 UTC ( [id://73097]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
There are a good few conventions for making modules and, perlmod is a bit too condensed to learn it IMHO, although an excellent reference. Sadly most of the knowledge I've gleemed on this subject is in the pages of Debugging Perl, The Perl Cookbook and Object Oriented Perl, so I can't readily submit URL's for the salient points, all these books give a well rounded look at modules and their creation and use, from different angles, with little overlap. If I had to point to one book to use, for this and other reasons it'd be the Cook Book. HTH. Your code might benefit from indentation and you don't need the brackets around the variables being declared. You might lessen your future efforts further by making the functions more generic, maintainable and robust:
You were asking for Module specific stuff, and I fear I may be repeating things, you already know. A more precise set of goals to enable you to get `moduled' are:
<Hint to="greater Perl Monks" type="pretty big one">It is funny that there is no tutorial for modules in Tutorials</Hint> --Brother Frankus.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||