2010/4/27 Juan J. <reidrac@usebox.net>
Hello,

Hi,

Any comment on this? Should I file a bug report?

Sorry for the late reply, I've personally been a bit busy and I reckon so where a few other people on the list.

I've gone over your code. There are two issues:

1. Instead of 'load_app("test")', you should write 'use load;'. That would fix the first issue.
2. You accidentally used a variable "$fail" when you haven't declared it yet. Here is a working version:
# ---- test.pl ----
/usr/bin/perl
use Dancer;
use test;
dance;

# ---- test.pm ----
package test;
use Dancer ':syntax';

our $VERSION = '0.1';

get '/' => sub {
    my $w    = "whatever";
    my $fail = "nothing";
    print "test" if $w =~ m/$fail/;
    template 'index';
};

true;
# ---- ----

Happy dancing, :)

Sawyer.