tdane has asked for the wisdom of the Perl Monks concerning the following question:
I have some perl code that literally tens of people might be interested in. Although I've used perl for a decade, it has been a long time since I've coded anything other than simple ad-hoc scripts in it. So I'm pretty new to the OO perl model (I've written a book on Java, but perl OO is a little more, well, exotic!)
Anyways, the module is designed to allow you to read data from a closed, old 4GL called "FilePro."
I built the module following the guidance in the Apress title "Writing Perl Modules for CPAN." Even with that, I've already seen things I know I should change. I'll switch from "die" to "croak" and so on.
Basically, I'm hoping someone will take a look and make recommendations for things I should address prior to offering it up on CPAN. I've got my PAUSE account and such, but I'd like someone besides me to look at it.
You can get to the code at my website (and take it easy, this server runs in my home!)
http://www.technodane.com/code/FilePro-Data-0.01.tar.gzLike I said, I'm new to the formal module game. I'm seeking advice on writing tests, on documentation best practices, namespace (filePro appears to be a registered trademark; tips on that?)
An implementation detail: My iterator model uses a hash key string as a "handle." It would probably be better to use another "object" for that, but I'm not clear on the best way to do that. Does it make sense to put more than one "package" in a single CPAN module? Should the iterator be separate module on which FilePro::Data depends?
Any tips would be welcome!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Proposed module for CPAN
by toolic (Bishop) on Dec 01, 2009 at 22:30 UTC | |
|
Re: Proposed module for CPAN
by spx2 (Deacon) on Dec 02, 2009 at 09:52 UTC | |
|
Re: Proposed module for CPAN
by biohisham (Priest) on Dec 01, 2009 at 23:31 UTC | |
|
Re: Proposed module for CPAN for FilePro data file reading
by talexb (Chancellor) on Dec 02, 2009 at 17:41 UTC |