Use of uninitialized value $values[0] in... Route.pm line 80
How do I debug something like this? [Mon Dec 13 16:26:07 2010] [error] [client 127.0.0.1] Use of uninitialized value $values[0] in join or string at /usr/local/lib/perl5/site_perl/5.12.1/Dancer/Route.pm line 80. Seems to happen when I visit the root of my web site, for example, http://server.com/ without anything after .com/.... -- Puneet Kishor
On Tue, Dec 14, 2010 at 12:30 AM, Puneet Kishor <punk.kish@gmail.com> wrote:
How do I debug something like this?
You should activate the "console" logger and set the debugging flag on. You'll notice this line to help you understand what's going on: Dancer::Logger::core("trying to match `$path' " . "against /" . $self->{_compiled_regexp} . "/"); It appears @values is being created by trying to match $path against the compiled regex. That print will basically tell you what's wrong. I would personally just download the latest stable, and run it locally with "perl -IDancer-1.2003/lib bin/app.pl" (YMMV) so I could hack at the file, if I need to. Sawyer.
participants (2)
-
Puneet Kishor -
sawyer x