[Catalyst] Problem with Catalyst::Engine::component()

Bernhard Graf catalyst at augensalat.de
Fri Aug 26 13:00:14 CEST 2005


Sebastian Riedel wrote:
> Am 26.08.2005 um 09:45 schrieb Bernhard Graf:
> > Finally I spotted Catalyst::Engine::component() as the point of
> > failure.
>
> Well, you could have used $c->component('^MyApp::M::Shop$'), but i
> agree, regex search is wrong, anyone got objections against removing
> it? It was originally meant to save me some typing, but it seems
> there are too many people who can't handle it.

No objections from my side of course.
It might save a little typing in rare cases, but it is a classic pitfall 
that took me a lot of time to get out.

Maybe you could implement sth. like a find_comp_by_regex() if people 
find it usefull.

-- 
Bernhard Graf



More information about the Catalyst mailing list