title: Dynamic ORM - Perl
body: <p>I am looking to upgrade an existing perl web-based application and wondering if there are any suggestions on how to solve a particular problem:  </p>
  
  <p>The application is used by several clients who each have a very customized dataset behind the scenes.  There is very little overlap in the dataset between clients.  However, they all load and use the same software.  There are numerous configuration files that tell the software how to process this client and understand it's customized dataset.  </p>
  
  <p>In essence, there are common functions but different datasets that those functions work upon.  I'm looking for a way to abstract the datasets into an ORM.  However, most ORMs seem to expect a common dataset behind the scenes.  I need to either load the ORM modules dynamically based on the client being used or dynamically create the ORM structure based on the same.</p>
  
  <p>e.g.
  The software provides View/Edit/Delete functionality but</p>
  
  <p>Client A
    Manages tables</p>
  
  <p>Client B
    Manages automobiles</p>
  
  <p>The View function loads configuration files and has custom template files for each client that are relevant to the type of data they are managing.</p>
  
  <p>Any suggestions?</p>