title: Perl REST flow layout
body: <p>I'm using Apache and Perl (modperl), with Handlers to handle requests.  I'm new to this, and I'm not quite sure how to lay things out in a sensible way.</p>
  
  <p>Right now I have the following:</p>
  
  <pre><code>package MyClass::Handler;
  
  use warnings;
  use strict;
  # includes
  
  our %action = ( 
     'a' =&gt; \&amp;a,
     # And more
  );
  
  sub handler {
      my $a = shift;
      my $r = Apache2::Request-&gt;new($a);
  
      # Do things
  
      return Apache2::Const::OK();
  }
  </code></pre>
  
  <p>Should I have a different file for each "space"?  Using stackoverflow as a template, do I need a User.pm for all the User management?  A Story.pm for stories?</p>