in reply to I really need help making a module.
Basically, I'm making a Bioperl module. It's supposed to be in the package Bio::DB::CCDS. It has a few global variables and doesn't use a "$self" variable. Does it need to?
Probably. You've decided it goes into "Bio::DB" so it should follow the conventions/interface of the existing project
Should @EXPORT use qw?
Thats not the question to ask, the question is should you export anything (the answer is no)
Should each function named in it have a & sign before it?
If you still think its important to know, Exporter answers it
How do I create a working module and put it in the correct directory? How would I have to modify the Makefile?
You start with module-starter, then you install the module. A Guide to Installing Modules
In between you probalby want to copy/paste some ideas from one of the Bio::DB:: modules, say Bio::DB::Fasta. You'll notice it has "$self" and doesn't use Exporter.
zentara package/module tutorial
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: I really need help making a module.
by adur (Initiate) on Aug 19, 2015 at 16:09 UTC | |
by adur (Initiate) on Aug 19, 2015 at 16:11 UTC |