MyApp.pm (off somewhere outside of the document root) doc-root--- -------------- | | foo_dir bar_dir | | foo.cgi foo.cgi Code for foo.cgi: use MyApp; my $webapp = MyApp->new(); $webapp->run();
Each use the same MyApp.pm, but access to the foo_dir is limited to different users than bar_dir.
This approach has the advantage of using the existing login/ authentication scheme while allowing me to reuse my code across different locations.
One thing worth noting, is that I haven't taken advantage of CGI:Apps ability to pass in different parameters so that the same MyApp code could behave somewhat differently in these two instances.
good luck with your project.
-------------------------------------
Nothing is too wonderful to be true
-- Michael Faraday
In reply to Re: Re: Re: CGI::Application, have I made a big mistake.
by freddo411
in thread CGI::Application, have I made a big mistake.
by jdtoronto
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |