[Catalyst] simple question ... I think ...

Joe Landman landman at scalableinformatics.com
Sun Aug 13 18:36:29 CEST 2006

Ok, being stupid today

I have a simple controller named directory.  It has a default method.
So things named


should go to it.  Now I want to capture


that is, I want this controller to handle anything past the default
method.  It does this by default.  My question is, how do I get access
to the rest of the path after /directory?  This is what I have ...

sub default : Regex('^(.*)$') {
    my ( $self, $c, $rest ) = @_;


and I want $rest to be /other/things/...

This is not working though.  I tried a Path('/directory') that worked,
as long as I gave it /directory/other.  As soon as I tried
/directory/other/things, it gave me /directory/other.


Hints?  Clues?  FAQs?  Pointers?


Joe Landman
landman |at| scalableinformatics |dot| com

More information about the Catalyst mailing list