Hey, that's the question. I know Perl, so should I learn PHP? I've not
yet read anything on php.net that tells me.
You can much do everything in both Perl and PHP, so for that reason you don't
need to learn to use PHP. If you work "professionally " with coding, you may
get a customer who wants a PHP solution instead of Perl, in which case it can
be good to know PHP.
IMHO PHP ain't difficult to learn, the first PHP project I worked on, I never
had even seen PHP code before, just bought a PHP/MySQL book, still haven't
read many pages from it, but the project went well and is still making a lot
of money for the buyer.
The online manual at php.net is the best source for help IMHO, as you will
find a lot of good remarks from other users.
On Jun 21, 6:53 pm, jdoerr <jdo...@verizon .comwrote:
Hey, that's the question. I know Perl, so should I learn PHP? I've not
yet read anything on php.net that tells me.
>
Thank you,
-jc
For me, it was syntax readability, I wanted to create programs that
read well. Perl (when I looked at sample code) had a lot of spaghetti
code in which made easy reading the tough.
On Jun 21, 6:53 pm, jdoerr <jdo...@verizon .comwrote:
>Hey, that's the question. I know Perl, so should I learn PHP? I've not
>yet read anything on php.net that tells me.
>>
>Thank you,
>-jc
>
For me, it was syntax readability, I wanted to create programs that
read well. Perl (when I looked at sample code) had a lot of spaghetti
code in which made easy reading the tough.
>
>
I wouldn't say that's typical of all Perl code. As with any language,
there are good programmers and poor programmers, and you can write
spaghetti code in any (or most, anyway :-) ).
I've seen some really good Perl code (and some really bad PHP code).
--
=============== ===
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp. jstucklex@attgl obal.net
=============== ===
On Fri, 22 Jun 2007 01:53:17 GMT, jdoerr <jdoerr@verizon .comwrote:
>Hey, that's the question. I know Perl, so should I learn PHP? I've not
>yet read anything on php.net that tells me.
>
>Thank you,
>-jc
If you are writing scripts for command line use or cron jobs, then
Perl is better at this point. However, if you are writing web pages
with CGI scripts, then you want to take a close look at PHP. It was
designed to create dynamic HTML.
Yes, you should.. it's great having the best of both worlds.. especially
when you want quick and simple access to MySQL.. (little quicker and easier
than Perl's DBI/DBD). You did right with learning Perl first though.. PHP
will be a breeze and you'll pick it up in no time.. (speaking from
experience)..
Below is a quote from the last major Perl vs PHP discussion I read.. (I
can't find the original source, I just saved it into notepad at the time):
"So, what does it all mean? I suppose you could think of PHP as a small,
powered snowblower. It is extremely good at clearing your driveway when it
snows, but that's about all it can do. When things start getting unique,
say, if it occasionally rains frogs instead of snow, you're stuck.
Perl is more like a snow shovel. It requires a little more sweat, a little
more skill, and a little more time, but it is also extremely good at
clearing your driveway of snow. It can also clear your sidewalk and front
porch, and is just as good with mud or frogs as it is with snow. You can use
it as a sled, fend off an intruder, grill food on it, . In fact, whatever it
is you want to do, somebody else has probably already done it and uploaded a
module to CPAN. "
In article <1182574694.022 848.143940@k79g 2000hse.googleg roups.com>, larry@portcommo dore.com wrote:
On Jun 21, 6:53 pm, jdoerr <jdo...@verizon .comwrote:
Hey, that's the question. I know Perl, so should I learn PHP? I've not
yet read anything on php.net that tells me.
Thank you,
-jc
>
For me, it was syntax readability, I wanted to create programs that
read well. Perl (when I looked at sample code) had a lot of spaghetti
code in which made easy reading the tough.
Spaghetti one can work through. Its the unmemorable shortcuts like $_
and friends and the assumption that remembering all this rubbish somehow
makes you more cool.
Hey, that's the question. I know Perl, so should I learn PHP? I've
not yet read anything on php.net that tells me.
How about personal betterment?
Until recently, I've worked almost exclusively in ASP, but recently I took
on a job that required me to start learning PHP too.
I now have two languages I can list on my CV instead of the one I had
before.
For what it's worth, the site I'm currently working on is using a
combination of ASP and PHP pages, and even a little touch of javascript.
I'm having great fun making the different languages pass variable values
backwards and forwards between themselves.
Comment