title: How can I run a CGI::Application run mode from the command line?
body: <p>I have a run mode in my <a href="http://search.cpan.org/dist/CGI-Application" rel="noreferrer">CGI::Application</a> web-app that I would like to be able to trigger from the command line so i can automate it.  From the web-app's perspective it does some processing then sends the results in an email.</p>
  
  <p>When called from the web interface it passes in a set of parameters (email address, which query to run, date, etc) so these need to be passed in.</p>
  
  <p>How can I construct a call to the CGI::Application app that will be the same as if I ran it from the web?</p>