I've been building a web app using CGI Application and hit a point where I need to split the application up into different folders, yet keep inheritince alive and well. I need some help splitting the application up.
Simplified, the directory structure of application looks like this:
www
+ App
App.pm
+ Admin
Admin.pm
+ Super
Super.pm
+ Regular
Regular.pm
+ User
User.pm
+ Super
Super.pm
+Regular
Regular.pm
Package names look like this:
App
App::Admin
App::Admin::Super
I need to move the Admin part of the application into a different www folder while still using App as the base class for Admin:
www
+ App
App.pm
+ User
User.pm
+ Super
Super.pm
+Regular
Regular.pm
www_other
+ Admin
Admin.pm
+ Super
Super.pm
+ Regular
Regular.pm
Any suggestions for how to go about spliting the application up or general inheritance suggestions will be greatly appreciated.