Joe Landman wrote:
> 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.
>
>   
http://search.cpan.org/~mramberg/Catalyst-Runtime-5.7001/lib/Catalyst/Manual/Intro.pod#URL_Path_Handling

_______________________________________________
List: [email protected]
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/

Reply via email to