On 2004-02-04, Keith Bowes <do.not@spam.me> wrote:[color=blue]
> Jon jones wrote:[color=green]
>> I am wondering as broad as it is which language would be better to
>> build a project in PHP or Perl.
>> I don't have any experience of either, just some VB,Fox,C++ and
>> Java.So really I am asking for the pro and cons before I start.
>> Any advance would be helpful,[/color]
>
>
> I agree with what others have said. It all depends on you, your
> projects, its needs, etc. However, some advantages of PHP:
> 1. Web-oriented; less modules to include and easier HTML generation, db
> access, etc; you don't have to manually generate headers.
> 2. More built-in modules.[/color]
I suggest you have a look around at cpan.
[color=blue]
> 3. Easier to learn; easier to read; easier to write; easier to debug.[/color]
I think they have the same learning curve. They both have error handling
etc, but i've never found PHP's version of use strict;
[color=blue]
> 4. Has classes and other semantic traditions; you don't need to learn
> new ways to do old things (except for perhaps . for concatenation, ->
> for object access, $ for variable access, and little things like that).[/color]
And what exactly would be different from Perl?
[color=blue]
> 5. It's been reported that PHP's faster than Perl.[/color]
I'm not sure on this. I should compare them, both being used through CGI
and both being uses as a module (mod_cgi).
[color=blue]
> Maybe some things for Perl:
> 1. If you can master it, you can make cryptic, compact code.[/color]
Writing cryptic code can be done in every language.
--
http://home.mysth.be/~timvw