Forum Moderators: coopster & phranque

Message Too Old, No Replies

Perl vs PHP

why are there so many php threads?

         

Jscally

7:26 pm on May 13, 2003 (gmt 0)

10+ Year Member



Hi, Im new to the 'World' and I was wondering why it seems every topic in the 'Perl and PHP CGI Scripting' deals with PHP?

I've been using Perl for a few months now, and have no experience with PHP. Is there a reason noone seems to be using Perl?

I've been using Perl to access a MYSQL database and perform some very basic Select statements. Should I be pushing my efforts into learning PHP?

TheWebographer

8:12 pm on May 13, 2003 (gmt 0)

10+ Year Member



Whatever works for you, works for you.

In my experience, both Perl and PHP are very powerful. My first database driven website used Perl back in 1998 and it worked great.

I believe PHP has an easier learning curve and it was actually created for use on the web. Several years ago you may have been able to say that Perl was more mature and more capable of doing a wider variety of things than PHP as far as websites go. I am not so sure this is really the case now.

Back when the web was first catching on, Perl was drafted into server side CGI scripting use because there wasn't much else available. Because of this, to me it seems a little clunky to use on websites. But I am sure that is only because I have chosen PHP as my main scripting language and so know it better.

jatar_k

8:17 pm on May 13, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld Jscally,

There are actually a fair number of perl threads in here but it seems that on various occassions php tends to run the roost. I don't think you need to go nuts and switch to php.

We have a bunch of perl users here and a bunch that know both so you aren't in anyway in the minority. I do notice that there are a lot more new users coming in to talk php than there are to talk perl, doesn't mean there are none, just fewer.

I am always very happy to see a few more perl folk wander in, helps keep a good balance of skills.

The first scripting I ever did was perl but am a die hard php coder now because of circumstance.

BCMG_Scott

8:57 pm on May 13, 2003 (gmt 0)

10+ Year Member



Gotta echo TheWebographer and jatar_k. I started on Perl and now use PHP. Typically I use Perl for system level scripting; code that interfaces with the log files, or with my SMTP/POP server, or directly with some server based function or file function. If I am doing web stuff or user interface stuff then I tend to use PHP.

Perl at the command line (e.g. SSH or {cringe} telnet) is extremely powerful and you can do things that you cannot easily do in PHP.

But that's just my $0.02

Scott Geiger