[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]
Martijn Grooten wrote:
On Sun, Jun 20, 2010 at 11:43 PM, Simon Waters wrote:I think PHP sucks in comparison to Perl. In what way do you think PHP is more user friendly?In that you can write a working web page in HTML and then add a few PHP bits to make it more dynamic. You can't do that with Perl, or at least not easily.
What like embedded perl?
http://perl.apache.org/embperl/
We don't use it these days, but one of our customers page starts.....
<html>
[!
## One-time initialisation and subroutines
use DBI;
sub keys_from_codes
{
....
<td>[+ $langmatch +]</td>
...
I don't see this as structurally different from PHP embedding, nor any
harder, but does add optional (is that a bug?) Perl taint checking and
the like.
It has some idiosyncrasies, like the $row, $col for dynamic tables, which I suspect wasn't around and was avoided completely in our limited use of it in the past.
Recently I did the ultimate sin and wanted a CPAN module in my PHP, and it seems there is a PHP library for this, and suddenly...
<php
$perl = new Perl();
$perl->eval('
use Graphics::ColorObject;
...
Is valid PHP, I feel queasy but that bit is only in some admin backend
to a website.
-- The Mailing List for the Devon & Cornwall LUG http://mailman.dclug.org.uk/listinfo/list FAQ: http://www.dcglug.org.uk/linux_adm/list-faq.html