[cgiapp] C::A::P::Routes

P Kishor punk.kish at gmail.com
Thu Mar 4 10:36:45 EST 2010


On Thu, Mar 4, 2010 at 8:17 AM, Mike Tonks <fluffymike at googlemail.com> wrote:
>> By the way, could you please check if $self->route_dbg works for you?
>
> Exactly as you reported, I get an error:
>
> Error executing run mode 'view': Undefined subroutine
> &CGI::Application::Plugin::Routes::Dumper called at
> /usr/local/share/perl/5.10.0/CGI/Application/Plugin/Routes.pm line
> 49.,
>
>
> When I changed 'require' to 'use', it works ok:
>
> $VAR1 = { 'rule_matched: ' => '/([^/]*)', 'parsed_params: ' => { 'id'
> => '16285' }, 'path_received: ' => '/16285', 'runmode: ' => 'view' };
>


Thanks for confirming this. So, there is at least one problem with
CAPRoutes. In my case, even though the error goes away when I change
'require' to 'use', I get no dump at all. That is because either
nothing matches, or something else screwy happens.



-- 
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
=======================================================================


More information about the cgiapp mailing list