Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: PHP to PERL ?

by vagnerr (Prior)
on Dec 27, 2005 at 23:07 UTC ( [id://519445] : note . print w/replies, xml ) Need Help??


in reply to PHP to PERL ?

PHP is more tightly integrated into the actual html output than Perl, you will want to look at some of the templating modules available on CPAN such as HTML::Template


_______________________________________________________
Remember that amateurs built Noah's Ark. Professionals built the Titanic.

Replies are listed 'Best First'.
Re^2: PHP to PERL ?
by reneeb (Chaplain) on Dec 28, 2005 at 02:25 UTC

      Just to clarify, your definition of 'better' in this example is probably defined as 'faster'. Note that the author of HTML::Template::Compiled Tina Mueller mentioned on the mod_perl mailing list that she wouldn't advise using H::T::C in production.

      Not to worry though because if speed is your goal, you might want to have a peek at HTML::Template::JIT instead. It's stable and has a decent test suite.

      -- vek --
        Just to clarify, your definition of 'better' in this example is probably defined as 'faster'.
        I guess reneeb was referring to the dynamic include feature of HTC, which HTML::Template doesn't have: <tmpl_include_var name="parameter_which_contains_filename">
        Note that the author of HTML::Template::Compiled Tina Mueller mentioned on the mod_perl mailing list that she wouldn't advise using H::T::C in production.
        sure, but this advice wasn't meant for eternity =)
Re^2: PHP to PERL ?
by Anonymous Monk on Dec 28, 2005 at 16:14 UTC