On Thu, Aug 19, 2010 at 5:09 PM, Olaf Alders <olaf@wundersolutions.com> wrote:
On 2010-08-19, at 3:27 PM, P Kishor wrote:
As far as your setup goes, you may want to at least consider something like this:
http://advent.plackperl.org/2009/12/day-12-maps-multiple-apps-with-mount-and...
"The environment variables such as PATH_INFO and SCRIPT_NAME are automatically adjusted so it just works like when your application is mounted using Apache's mod_alias or CGI scripts. Your application framework should always use PATH_INFO to dispatch requests, and concatenate with SCRIPT_NAME to build links."
This should get you pretty much to the same place, but with the added advantage of being able to use Plack's debug panels etc.
Hope this helps,
wow! That Plack advent calendar is brilliant. I am learning a lot from it, however, I am not sure it helps me. Since I am already using Dancer, I am "supposed" to be shielded from dealing with Plack directly, no? In other words, (from the quote above), Dancer should give me access to PATH_INFO and SCRIPT_NAME, etc. Which is precisely what I want.
Could you post a dump of your request->env ?
this may sound very dumb, but I frankly don't know how to dump a data structure. How do I dump the entire request->env()? -- Puneet Kishor http://www.punkish.org Carbon Model http://carbonmodel.org Charter Member, Open Source Geospatial Foundation http://www.osgeo.org Science Commons Fellow, http://sciencecommons.org/about/whoweare/kishor Nelson Institute, UW-Madison http://www.nelson.wisc.edu ----------------------------------------------------------------------- Assertions are politics; backing up assertions with evidence is science =======================================================================