Ralesk has asked for the wisdom of the Perl Monks concerning the following question:
Fellow Monks,
I have a module that I’d like to split into smaller parts. The organisation of the software currently is (using generic names): frontend.cgi (an FCGI app actually, could be anything else), AcmeAPI.pm (the module I want to split), and a few other pms unrelated to this module but used by the front end. The modules are not OO, there’s no need for objects right now.
So, frontend.cgi is basically just a router, it works with the received data, calls AcmeAPI’s functions as appropriate, and returns the results in the requested format. AcmeAPI has many facets and a few utility functions common to these facets. As I expect these functions to grow, I want to split things up into AcmeAPI::This, AcmeAPI::That etc. — that part is simple, just throw the appropriately named pm files in the appropriate subdir, and all is done.
My problems are the following:
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Package/module organisation question
by locked_user sundialsvc4 (Abbot) on Jun 13, 2012 at 17:42 UTC | |
by Ralesk (Pilgrim) on Jun 13, 2012 at 19:53 UTC | |
|
Re: Package/module organisation question
by locked_user sundialsvc4 (Abbot) on Jun 13, 2012 at 12:52 UTC |