Posts: 3,987
Name: Abel Mohler
Location: Asheville, North Carolina USA
|
Personally, I find PHP to be much easier to use than Perl, as it was created especially for the web. Perl does have some very powerful parsing features that are shared with PHP (for example its regular expression features), and some syntactical similarities, but I don't find the two to be that similar. However, I'm much more familiar with PHP than I am with Perl.
PHP is nice, because you can include its code right along-side regular HTML, which you can't do in the same way with Perl. You can also use if() else(), while(), for() etc structures in reference to regular chunks of HTML, simply by breaking from PHP without immediately closing the statement, like this:
PHP Code:
<?php if($loggedin) { ?> <h1>Welcome!</h1> <?php } ?>
I found an interesting link that compares the two languages: http://www.thesitewizard.com/archive/phpvscgi.shtml
__________________
I build web things. I work for the startup Please login or register to view this content. Registration is FREE
.
Last edited by wayfarer07; 07-11-2008 at 07:21 AM..
|