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

Joe Landman landman at scalableinformatics.com
Sun Aug 13 20:35:31 CEST 2006



Matt S Trout wrote:

> Yes, but you still don't need to use a regex action.
> 
> sub base :Path {
>  my ($self, $c, @parts) = @_;
>  my $rest = join('/', @parts);
>  ...
> }
> 
> If you're using a Regex action, always first ask yourself "is there an
> easier way to do this?". The answer is almost always yes.

heh... make it as simple as possible, but no simpler.  Thanks!  This is
exactly what I was looking/hoping for.  Works like a charm.  Didn't see
it expressed in the docs/faqs though.

-- 
Joe Landman
landman |at| scalableinformatics |dot| com



More information about the Catalyst mailing list