in reply to How to split main package into multiple files

You can , but don't. Use packages to organise code. If you are splitting code into multiple files there is an implication that you are organising the code into related lumps. If you give each lump a name you have effectively a package name, so use it as an actual package name. The value of good names is that you are providing information that helps organise and find code and that helps write and maintain the code.

Instead of creating UberPackageWithAllMyJunk create multiple small focused packages with appropriate names like CatGrooming, DogGrooming and BasicGrooming so you have some idea of how the code fits together and where to look for solutions to specific problems. (Did you spot that the dog and cat grooming packages probably use the basic grooming package?)

Premature optimization is the root of all job security
  • Comment on Re: How to split main package over multiple files

Replies are listed 'Best First'.
Re^2: How to split main package over multiple files
by mmk (Initiate) on Jun 23, 2016 at 20:58 UTC

    GrandFather, thank you for the good advice. Although I appreciate the wisdom behind your suggestion, I really need to try a few ideas after splitting the main package into multiple files -- if it is possible at all.