in reply to Re^3: Has anyone attempted to create a PHP to Perl converter?
in thread Has anyone attempted to create a PHP to Perl converter?
"And then, there are the ideas that simply do not exist at all in Perl, such as the intermingling of HTML and PHP in a file, which was a founding concept of PHP."
This is something that's actually incredibly easy to implement. This PHP:
?>Hello<?php
Becomes this in Perl:
print "Hello";
There are far harder things to implement - PHP's idea of arrays differs greatly from Perl's; PHP has different ideas about passing arguments to functions by value or reference; different variable scoping; different behaviour of the ==, <, >, etc operators; and so on.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Has anyone attempted to create a PHP to Perl converter?
by locked_user sundialsvc4 (Abbot) on Nov 16, 2013 at 00:06 UTC |