On Sun, Jan 30, 2011 at 11:46 AM, Joel Roth
<joelz@pobox.com> wrote:
Hey Joel,
If you know the level, and you want to be explicit, you can try the default route syntax: '/media/*/*'.
However, you will most likely prefer a regular expression (which you tried earlier), and Dancer allows that very easily since Perl considers regexes as first class:
get qr/.../ => sub { ... };
We prefer to wrap qr() with something other than slashes, so we don't get into a backslash fight:
get qr{ / media / (.*) }x => sub { ... };
Enjoy!