On Feb 16, 2006, at 12:48 PM, Michael Greenish wrote:

What I like about PHP over perl is the ease of
variable declaration.  I feel I have to use strict
with perl, I would like the ability to not have to put
"my" in front of every new variable.

putting my / our before variables is good though.

is the templating.  I haven't found a template module
in perl that rivals Smarty templates in PHP.

Have you looked at Template::Toolkit ? Or Mason ?

any array element with ".".  Smarty plugin's are
great.  They help with creating select drop downs,
date drop downs.  I can capitalize, count, strip
template variables within smarty
All the perl templating engines allow that. there's also FormBuilder and other things

so much more I can do with Smarty than with
HTML::Template.  Maybe I just missed all that stuff in
the documentation but again, I didn't find it.  Also,
it's much easier to include a code snippet in php than
in perl.
HTML::Template is a simple barebones templating system. its not a robust approach like Smarty. You should be looking at TT and MAson.

Today, Perl is still my personal favorite language to
code for web/unix task.  However at work, I am
implementing MVC in PHP 4 much like I did with Perl
using the basic OO capabilities available in 4.
Interface functions don't help in the web apps I do
(small - medium) so I don't see to much need for us to
move to 5.  But that's another topic.
I'd suggest looking at TAL the Template Attribute Language. The specification is on the Zope website (python). There are perl and php implementations (be warned though, the php version is a bit slow, so i suggest using a code caching system like eaccelerator with it). It's rather nice if you're doing cross-language development, because the same templates will work in just about any language.



Reply via email to