[Catalyst] Chained Regexes
Matt S Trout
dbix-class at trout.me.uk
Sat Sep 27 18:36:21 BST 2008
On Wed, Sep 24, 2008 at 07:10:38AM -0700, Ovid wrote:
> Pursuant to a refactoring issue I explained at http://use.perl.org/~Ovid/journal/37525, it would be nice if I could mix regexes with Chained actions. There are some nice refactoring potential. Plus, by allowing me to apply a regex to a CaptureArg or Arg, I could get 404s for free. Having to write this manually is a bit disappointing.
The solution here is to implement match_captures to do for captures what
match on action objects already does for args.
Having done that, your action class can do pretty much whatever the hell it
wants, regexps or db lookups or etc.
--
Matt S Trout Need help with your Catalyst or DBIx::Class project?
Technical Director http://www.shadowcat.co.uk/catalyst/
Shadowcat Systems Ltd. Want a managed development or deployment platform?
http://chainsawblues.vox.com/ http://www.shadowcat.co.uk/servers/
More information about the Catalyst
mailing list