Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

for web applications, what does perl have over php?

Status
Not open for further replies.

m4trix

Vendor
Jul 31, 2002
84
CA
I've heard a lot about php being much better than perl for web applications, what are your views on this?
 
php is good for web apps. Seen a lot of things done in PHP that are very nice. I started to learn php a LONG time ago, and wasn't really thrilled about the 4.2 billion functions to learn. Functions like:

takeThisValueAndMultiplyItByThisOtherone()

That's a joke folks. But it highlights the fact that there are many function names with long names. No - I don't have an actual example. Becuase I didn't want to memorize them to begin with - I don't know them now.

I think Perl is a better 'general purpose' programming language than PHP. But again - people will argue that PHP can be used to develop enterprise level applications.

I understand it integrates with MySQL with native support.

There are benchmark tests out on the net - Perl is normally the best performing scripting language - but of course.

There are people that would argue till they were blue in the face that one is more appropriate, but in the end its:

Can you do/learn it in the time alotted?
Is it an appropriate solution?
Is it enjoyable for you? After all you are the one spending hours looking at it. That's important.

Well, I've reached the point where I'm obligated to say: Perl is better, use perl.

And I'll close with that.

--jim
 
I have been told you can do something in perl with a fraction of the code of PHP.
On the other hand PHP is supposed to be quite easy to learn(?)
I think if PHP was so much better more people would be using it, but it seems that all the best web applications are done in Perl, not PHP.





É
:: ::
 
I'll add a few cents of my own ;-)

I've used both - Perl is a more mature, very stable language - I like Perl a lot - for everything. Perl as DBI for database integration, which is excellent and rock solid - as of 1 1/2 years ago(I haven't used PHP in the last year and a half), PHP didn't have any "standard" database independent layer, so I chose to write my own, which was a fair amount of work.

But, PHP is very nice for web development! It is very fast, and I really liked the ability to mix code in with the HTML. And, you get a lot of nice tools for web development for free with PHP - the big one in my mind is session management. Perl has the Apache::Session module, but that's a separate module that you have to download and install.

Perl has excellent documentation, which as of 1 1/2 years ago, was quite a bit better than PHP's, IMHO.

Those are just some random thoughts - my experience with PHP was a positive one - I wouldn't hesitate to use it again for web development given the chance. But I also love Perl, so take your pick.

HTH. Hardy Merrill
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top