[Catalyst] Newbie question

Kieren Diment diment at gmail.com
Thu Jan 12 11:28:28 CET 2006


Instead of
$c->$thing = 'foo'

do

$c->thing = `/usr/bin/perl legacy_app.cgi $params` ; # backticks

no?




On 12/01/06, Balaji Srinivasan <balajione at gmail.com> wrote:
>
> Hi Everyone
> I recently started working with Catalyst.  I created a new app myapp.
> Which has an action foo. So when i run it in the test server
> (myapp_server.pl). It works fine. I can trype http://localhost:3000/fooand get the results I want
>
> Now I want to integrate it with a legacy app running as a CGI. When I do
> that and execute http://localhost/cgi-bin/myapp.cgi it gives me the
> catalyst info page. But when I do http://localhost/cgi-bin/myapp.cgi/foo,
> it takes forever.
>
> I then tried to put a dummy action that just sets the response text to
> Foo. And that worked as well.
> But anything more complicated than that (like trying to render a Mason
> template) hangs the browser (it eventually times out).
>
> I tried the IRC room as well. Unfortunately no one there could help me.
> I would appreciate any help/pointers.
>
> BTW I have debug disabled because I read somewhere that enabling debug
> causes apache to hang (because of some issues with catalyst starting to
> output while apache is still sending the request to the CGI).
>
> Thanks
> Balaji
>
> _______________________________________________
> Catalyst mailing list
> Catalyst at lists.rawmode.org
> http://lists.rawmode.org/mailman/listinfo/catalyst
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.rawmode.org/pipermail/catalyst/attachments/20060112/b5b67c3c/attachment.htm


More information about the Catalyst mailing list