Hi!

Is it possible and advisable to write the complex part of an application
(the Controller, if you like) in mod_perl2 and use PHP as a frontend (or
View) ?

While I personally prefere Template::Toolkit as a presentation language, the
project I'm currently getting involved in has quite a lot of PHP-people and
not that many (read: me) Perl people.

So what I thought is: use Perl to implement the rather complex business
logic, and PHP for rendering (and getting form input to the 'backend').

But: can I create a datastructure in Perl (in an ResponseHandler) and pass
it on to PHP running also as an ResponseHandler, but afterwards. Would I
need to stuff data in ENV? Can I pass complex data structures around? Do I
have to serialise (to yaml/xml) between Perl and PHP?

Or is this a bad idea altogether and I should use a different approach (Like
forcing everyone to read the Badger)?


-- 
#!/usr/bin/perl                               http://domm.zsi.at
for(ref bless{},just'another'perl'hacker){s-:+-$"-g&&print$_.$/}

Reply via email to