in reply to From PHP to Perl - Should I, and how?
Hello salazar
Have there been any problems or gotchas you have experienced or noticed which consistently occur amongst converts?
Only one thing.
If you are used to the PHP way, you may get an almost 1:1 transition in Web projects using HTML::Mason.
Mason allows you (doesn't force you) to intersperse your HTML with stuff like
[some.html] ... <table class="someclass"> % my $counter = 1; % foreach my $pr (@projects) { % my $rowcolor = ++$counter & 1 ? $color{DARK} : $color{LIGHT}; <tr class="tablefont" bgcolor="<% $bgcol %>"> <td> <% $pr->{topic} %>:</td> <td> <% $pr->{link} %> </td> </tr> % } </table> ...
which is almost a PHP idiom (in contrast to the "smarty" way ;-)
And, you may implement catalyst-like controller logic right into the directory it belongs to (dhandler)
Regards
mwa
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: From PHP to Perl - Should I, and how?
by salazar (Scribe) on Mar 10, 2009 at 13:30 UTC | |
by mwah (Hermit) on Mar 10, 2009 at 13:51 UTC | |
by sundialsvc4 (Abbot) on Mar 10, 2009 at 16:20 UTC |
In Section
Seekers of Perl Wisdom