[Catalyst] Catalyst::Utils::home()

Bill Moseley moseley at hank.org
Mon Apr 12 17:20:31 GMT 2010

I was hoping to use Catalyst::Utils::home outside of Catalyst -- I can do
that but I must load the application because home() looks in %INC to find
where the application class is located.  It's not a huge problem to load the
class, but it's not necessary for my needs.

Do you see any reason why home() could not walk @INC looking for the app .pm
file if not found in %INC?  Or is there another approach to find "home"?

Oh, btw --

    # we found nothing
    return 0;

maybe just "return;" -- or simply die "Cannot determine home for App

-- =

Bill Moseley
moseley at hank.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20100412/7d573=

More information about the Catalyst mailing list