Current location: Hot Scripts Forums » Programming Languages » Perl » Is there a functionality difference between Pearl & PHP?


Is there a functionality difference between Pearl & PHP?

Reply
  #1 (permalink)  
Old 10-13-09, 03:45 AM
Guillard4 Guillard4 is offline
Newbie Coder
 
Join Date: Jul 2009
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Post Is there a functionality difference between Pearl & PHP?

I heard Google uses Pearl & PHP?

What does Pearl run on?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 10-18-09, 09:04 AM
End User's Avatar
End User End User is offline
Level II Curmudgeon
 
Join Date: Dec 2004
Posts: 3,027
Thanks: 14
Thanked 35 Times in 33 Posts
Quote:
Originally Posted by Guillard4 View Post
What does Pearl run on?
A webserver.
__________________
I don't live on the edge, but sometimes I go there to visit.
-------------------------------------------------------------------------
Sanitize Your Data | Oracle Date & Substring Functions | Code Snippet Library | [url=http://www.codmb.com/Call Of Duty[/url]
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 11-07-09, 05:58 PM
NewsBlaze NewsBlaze is offline
New Member
 
Join Date: Nov 2009
Location: California
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Thumbs up Perl not Pearl

Perl not Pearl
Source code can look very similar.
PHP has a lot more inbuilt functions.
You can do close to the same thing with each.
Perl is a great pattern matching language.
You can write horrible or spaghetti code with both.
Perl doesn't need a webserver to run
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #4 (permalink)  
Old 11-07-09, 08:40 PM
End User's Avatar
End User End User is offline
Level II Curmudgeon
 
Join Date: Dec 2004
Posts: 3,027
Thanks: 14
Thanked 35 Times in 33 Posts
Quote:
Originally Posted by NewsBlaze View Post
Source code can look very similar.
Perl doesn't need a webserver to run
The source code can look similar, but Perl is often a little more terse. Really tight Perl code looks a lot like line noise. If its obfuscated it's nearly impossible to puzzle out. PHP can be that way but you really have to work at it.

Technically, neither of them need a web server to run. You can run either at the command line if your system has the right modules installed.
__________________
I don't live on the edge, but sometimes I go there to visit.
-------------------------------------------------------------------------
Sanitize Your Data | Oracle Date & Substring Functions | Code Snippet Library | [url=http://www.codmb.com/Call Of Duty[/url]
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #5 (permalink)  
Old 11-07-09, 09:26 PM
wirehopper's Avatar
wirehopper wirehopper is offline
-
 
Join Date: Feb 2006
Posts: 2,516
Thanks: 20
Thanked 109 Times in 106 Posts
I found a noticeable performance difference between the two - I think Perl is faster for simple scripts, but PHP probably performs better for more complex scripts that require library calls.

The analysis was done with a SOAP interface, and PHP consistently performed better. An equivalent script was written in both Perl and PHP.

I suspect this is due to the time required to interpret the Perl SOAP code.

It wasn't an exhaustive test, but if performance is a consideration, it's worth looking into.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP Search Feature Problem jilawatan PHP 2 08-13-09 09:21 AM
PHP and MySQL ? rob2132 Hot Scripts Forum Questions, Suggestions and Feedback 4 08-29-08 03:22 AM
2 profitable script sites for sale cms-master.com General Advertisements 3 07-03-07 11:17 AM
how to use onclick in php coolcoder HTML/XHTML/XML 2 05-31-06 01:40 PM
Php Mysql Bug??? tranquilraven PHP 4 03-01-06 04:06 AM


All times are GMT -5. The time now is 08:54 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.