Gossamer Forum
Home : General : Perl Programming :

Perl vs PHP

Quote Reply
Perl vs PHP
Hi,

I would like to know your opinion on PhP. Could you please tell me some Advantages/Disadvantages that PHP has over Perl.

Thanks,
Kurt

Last edited by:

snowdude46: May 6, 2004, 4:19 PM
Quote Reply
Re: [snowdude46] Perl vs PHP In reply to
Hi. This is quite a debate. Most people on these forums would swear by Perl, and say that PHP is a load of rubbish. However, if you went to other sites, they may say that its the best thing since sliced bread :p

Its more a personal thing really. I know Perl quite well (not saying I'm amazing), but I could also write you a PHP application quite easily (not as easy as if I was doing it in Perl).

The one good thing I like about PHP, is how easy it makes it to connect to MySQL, and the error catching.

The main thing I don't like, is their Regex engine. I've never found it to work as well as Perl ...i.e;

Code:
$var =~ m|\<option\>(.+?)\</option\>| and $value = $1;

I've yet to work out how to do similar stuff in PHP :(

I could go on for hours about pet-hates and stuff in PHP .... but overall, its quite a good language to learn, if you don't want to do too much complex stuff. There are some quite heated debates on this forum about this too :)

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [snowdude46] Perl vs PHP In reply to
Google is your friend. ;)

http://www.google.com/...mp;q=PHP+versus+Perl

EXAMPLES:

http://php.weblogs.com/php_versus_perl


http://www.netconcepts.com/news/php_vs_perl.php


http://www.thesitewizard.com/archive/phpvscgi.shtml
========================================
Buh Bye!

Cheers,
Me

Last edited by:

Stealth: May 7, 2004, 7:56 AM
Quote Reply
Re: [Stealth] Perl vs PHP In reply to
Ok thanks for your opinions and i read over those sites that you gave Stealth.....basically I guess its just an easier language to write scripts in. I might try to code a webpage in php just to be somewhat formalier with it.

Thanks,
Kurt
Quote Reply
Re: [Stealth] Perl vs PHP In reply to
i like this part:

Quote:

Conclusion
If you are a Perl expert, Perl probably is the best software for generating dynamic HTML because you can leverage all your experience and do work quickly.

But if you aren't a Perl guru, maybe it's time to consider PHP. Your code will be more consistent and modular, you won't have to workaround Perl gotchas, just PHP bugs :-), and the code runs faster too. I'll drink to that.