so now I am wondering about whether there exists a non-mess alternative to quick-and-dirty php (not to the full-blown drupal-joomla-mvc-etc web framework alternative).
Indeed there are such alternatives. I would suggest that you take a look at one of the lightweight CGI wrappers (CGI::Lite, CGI::Minimal, CGI::Simple, etc.) add FCGI if you want persistence and then use something like Template to handle the display of the results in HTML. This can be straightforward, with nowhere near the learning curve of some of the heavy frameworks and yet provides better security than putting your code inside the documents. You can still do this with Embperl (which does appear to be alive and well) instead if you prefer.
There are so many ways to approach this sort of task in Perl, but really only one in PHP. That's part of the joy of Perl - welcome to our world.
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|