Current location: Hot Scripts Forums » Programming Languages » Perl » php vs perl


View Poll Results: PHP vs Perl which is better?
php 2 40.00%
perl 3 60.00%
Voters: 5. You may not vote on this poll

php vs perl

Reply
  #1 (permalink)  
Old 12-08-03, 07:16 AM
Grüssle Grüssle is offline
Newbie Coder
 
Join Date: Dec 2003
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
php vs perl

Why are you guys using perl and not php?

Is there a place where I can read about what the difference is?
__________________
--
Grüssle
Reply With Quote
  #2 (permalink)  
Old 12-08-03, 11:14 AM
Chas Chas is offline
Coding Addict
 
Join Date: Oct 2003
Location: California
Posts: 359
Thanks: 0
Thanked 0 Times in 0 Posts
I think you're comparing apples to oranges here. PHP is not a replacement for Perl.

~Charlie
Reply With Quote
  #3 (permalink)  
Old 12-08-03, 10:40 PM
Millennium's Avatar
Millennium Millennium is offline
Wannabe Coder
 
Join Date: Nov 2003
Posts: 136
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Grüssle
Why are you guys using perl and not php?

Is there a place where I can read about what the difference is?
PHP has its advanatages for web/CGI scripts, but there is nothing PHP does that Perl can not do, and there are many many more things Perl can do that PHP will most likely never do since its made for a specific platform/environment, server/browser, Perl is portable to many platforms and is a general use programming language, which PHP is not.

What PHP does is just a small part of the capabilities of the Perl language.
Reply With Quote
  #4 (permalink)  
Old 12-09-03, 04:02 AM
Skeleton Man Skeleton Man is offline
Community Liaison
 
Join Date: Jun 2003
Location: Australia
Posts: 406
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Why are you guys using perl and not php?

Is there a place where I can read about what the difference is?
I'll second Millennium, in saying that PHP is almost soley for web based applications, while Perl is very general purpose. PHP has everything at your fingertips for gathering input, working with databases, etc... but it lacks in areas such as regular expression support.. yes there are perl compataible regex functions, but it's just not the same..

PHP is excellent for quick and easy database work when your app is largely database driven.. everything you need is right at your fingertips, even user input is allready nicely assigned to variables... but what happens if I have thousands of lines of log files, and want to parse out key bits of information ? PHP can do this for me, but that's not what it was designed for, and certainly not what it does best...

Perl on the other hand is rather cumbersome when it comes to database work, and while it is still more than capable of handling it, the approach leaves somewhat to be desired, and is much more difficult for the begginner.. However, when it comes to parsing copius amounts of raw text, perl does this very effectively with it's top notch regex support... and that's only the tip of the iceberg


Both languages have their advantages, it comes down to using the right tool for the right job. Just because you could drive in a screw with a hammer, does that mean you should do it ?

Speaking from experience, I would highly reccomend becoming proficient in both Perl and PHP.. (perl will always remain my language of choice though)

Last edited by Skeleton Man; 12-09-03 at 04:04 AM.
Reply With Quote
  #5 (permalink)  
Old 12-09-03, 05:59 AM
Grüssle Grüssle is offline
Newbie Coder
 
Join Date: Dec 2003
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Thank you guys, this has saved me a lot of research.
Reply With Quote
  #6 (permalink)  
Old 12-09-03, 06:42 AM
Skeleton Man Skeleton Man is offline
Community Liaison
 
Join Date: Jun 2003
Location: Australia
Posts: 406
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Grüssle
Thank you guys, this has saved me a lot of research.
Happy to help
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 visual basic perl cgi - outsource programming to india outsource_india General Advertisements 0 10-28-03 03:21 AM
Bookings/Availability PHP or Perl Script Mista Mike Script Requests 1 08-20-03 08:37 AM
Perl code : print "." x 20; - How to do it with PHP ? kevin PHP 2 07-04-03 04:29 AM
Use PHP to download .html file from another site (Like LWP::Simple in Perl) ? kevin PHP 4 07-03-03 01:57 AM
Free PHP, Perl and possible mySQL hosting! toby General Advertisements 8 06-17-03 01:04 AM


All times are GMT -5. The time now is 04:47 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.