473,503 Members | 1,676 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

PHP or Perl

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,
Jon Jones
Jul 17 '05 #1
10 1804
Jon jones wrote:
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,
Jon Jones


PHP is simpler to use than perl and yet still has a lot of power, and
you have to keep in mind that PHP was designed specifically to be a web
scripting language, perl was not.

~Cameron
Jul 17 '05 #2
Jon jones wrote:
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.


It depends on the project........

If it's a web application then I would lean towards php. It was designed
specifically for web apps. There's a slight parallel to VB in that you
can design your webpages using an HTML editor then insert php to add
functionality.

If it's a system application then I would lean towards perl. It is far
more powerful and has more system access, somewhat akin to C++. You have
to generate HTML programatically or look into some sort of templating
engine.

Your inexperience would also make me lean towards php. My personal
experience is that it's far easier to learn than perl.

Jul 17 '05 #3
Jon jones wrote:
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,
Jon Jones


It entierly depends on what your project is.

No matter what the advantages of PHP and Perl are if it turns out that
you are looking to create a realtime spectrum analyser that will fit on
a credit card then I wouldn't recommend either.

If you want to run a web site then take your pick.

If you want to do gene sequencing then the pre-existing code makes Perl
a safe bet.

Besides no one said you can't use both.
Jul 17 '05 #4
Jon jones wrote:
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,

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.
3. Easier to learn; easier to read; easier to write; easier to debug.
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).
5. It's been reported that PHP's faster than Perl.

Maybe some things for Perl:
1. If you can master it, you can make cryptic, compact code.
2. In programs, you don't have to include <?php and ?> in every file.

Jul 17 '05 #5
On 2004-02-04, Keith Bowes <do****@spam.me> wrote:
Jon jones wrote:
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,

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.


I suggest you have a look around at cpan.

3. Easier to learn; easier to read; easier to write; easier to debug.
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;

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).
And what exactly would be different from Perl?

5. It's been reported that PHP's faster than Perl.
I'm not sure on this. I should compare them, both being used through CGI
and both being uses as a module (mod_cgi).

Maybe some things for Perl:
1. If you can master it, you can make cryptic, compact code.


Writing cryptic code can be done in every language.

--
http://home.mysth.be/~timvw
Jul 17 '05 #6
In message-id <bv************@ID-188825.news.uni-berlin.de>,
Tim Van Wassenhove wrote:
5. It's been reported that PHP's faster than Perl.


I'm not sure on this. I should compare them, both being used through CGI
and both being uses as a module (mod_cgi).


however, mod_perl is considerably faster than any flavour of PHP that
i've seen, especially when _not_ running with StatINC, as the code
(including all moduled used) is compiled at server start-up and then
run from memory.
Jul 17 '05 #7
Jon,

Perhaps you could share more information on the nature of your project?
The more details we know the better we can provide specific suggestions
and advice.

Regards,

Lukas
Jul 17 '05 #8
jo*********@hotmail.com (Jon jones) wrote in message news:<7b**************************@posting.google. com>...
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.


Why bother learning both?? In PHP groups, PHP is good; in Perl
group, Perl is good..... If you really don't want to learn both, you
may Google PHP vs Perl and get lot of stuffs.

--
"Success = 10% sweat + 90% tears"
Email: rrjanbiah-at-Y!com
Jul 17 '05 #9
jo*********@hotmail.com (Jon jones) wrote in
news:7b**************************@posting.google.c om:
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.


As others have stated, it really depends on the nature of the project.
However, assuming that the project falls into the category of projects in
which both PHP and Perl are reasonable choices, the decision most likely
will come down to not-entirely-technical factors like:

1) The relatively availability of people who work in the project's field
and are familiar with either language. Even if it's a one-person project,
it will need to be maintained and unless you're immortal, can guarantee
that you're never going to move or switch fields, etc., you need to
consider the ability of others to pick it up.

2) The availability of already written-and-tested (the "-and-tested" part
is the most important) libraries/modules to accomplish some of the tasks
required for the project. You also need to consider how much of such code
comes with a default installation of the language and how much has to be
gathered from other sources; this is especially important if your code has
to be installed at multiple locations.

3) If this is a Web application, the availability of hosting within your
desired price/quality range that *properly* supports the language.

These factors will vary according to the nature of the project, your
geographical location, and other such influences.
Jul 17 '05 #10
Doesn't sound like you have a lot of experience with regular expressions. I
would recommend PHP in this case. Perl is not worthwhile without a mastery
of regular expression.

Uzytkownik "Jon jones" <jo*********@hotmail.com> napisal w wiadomosci
news:7b**************************@posting.google.c om...
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,
Jon Jones

Jul 17 '05 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
8119
by: Mark Wilson CPU | last post by:
This must be easy, but I'm missing something... I want to execute a Perl script, and capture ALL its output into a PHP variable. Here are my 2 files: -------------------------------------...
31
4724
by: surfunbear | last post by:
I've read some posts on Perl versus Python and studied a bit of my Python book. I'm a software engineer, familiar with C++ objected oriented development, but have been using Perl because it is...
0
9734
by: Kirt Loki Dankmyer | last post by:
So, I download the latest "stable" tar for perl (5.8.7) and try to compile it on the Solaris 8 (SPARC) box that I administrate. I try all sorts of different switches, but I can't get it to compile....
13
3226
by: Otto J. Makela | last post by:
I'm trying to install to php the Perl-1.0.0.tgz package (from http://pecl.php.net/package/perl, enabling one to call perl libraries) to a pre-existing Solaris system. Unfortunately, the attempt...
6
2981
by: surfivor | last post by:
I may be involved in a data migration project involving databases and creating XML feeds. Our site is PHP based, so I imagine the team might suggest PHP, but I had a look at the PHP documentation...
4
3671
by: billb | last post by:
I installed a perl extension for PHP to use some perl inside my php primarily because I have perl working with oracle and not php and oracle. So I want to use my old perl scripts, and use the...
21
34322
KevinADC
by: KevinADC | last post by:
Note: You may skip to the end of the article if all you want is the perl code. Introduction Uploading files from a local computer to a remote web server has many useful purposes, the most...
1
47347
KevinADC
by: KevinADC | last post by:
Note: You may skip to the end of the article if all you want is the perl code. Introduction Many websites have a form or a link you can use to download a file. You click a form button or click...
0
7083
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7328
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7456
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5578
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5011
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3166
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1510
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
734
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
379
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.