Why PHP instead of Perl?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • jdoerr

    Why PHP instead of Perl?

    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
  • Tim Campbell

    #2
    Re: Why PHP instead of Perl?

    "jdoerr" <jdoerr@verizon .comwrote in message
    news:hYFei.1250 8$M%4.2355@trnd ny08...
    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.
    Do what works.


    Comment

    • albemuth

      #3
      Re: Why PHP instead of Perl?

      On Jun 21, 9: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.
      Why not? Expand your horizons. PHP is great for quick, functional
      website development. But Perl is still good too.

      Comment

      • Allodoxaphobia

        #4
        Re: Why PHP instead of Perl?

        ["Followup-To:" header set to alt.php.]
        On Fri, 22 Jun 2007 01:53:17 GMT, jdoerr wrote:
        Hey, that's the question. I know Perl, so should I learn PHP?
        Participating in comp.lang.php is a lot more pleasant
        than participating in comp.lang.perl.

        Comment

        • J.O. Aho

          #5
          Re: Why PHP instead of Perl?

          jdoerr wrote:
          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.


          --

          //Aho

          Comment

          • Tim Streater

            #6
            Re: Why PHP instead of Perl?

            In article <slrnf7mjki.6lu .bit-bucket@shell.co nfig.com>,
            Allodoxaphobia <bit-bucket@config.c omwrote:
            ["Followup-To:" header set to alt.php.]
            On Fri, 22 Jun 2007 01:53:17 GMT, jdoerr wrote:
            Hey, that's the question. I know Perl, so should I learn PHP?
            >
            Participating in comp.lang.php is a lot more pleasant
            than participating in comp.lang.perl.
            That's been my experience too. perl types are much too geeky for normal
            people - you only have to read the perl book to see that.

            Comment

            • larry@portcommodore.com

              #7
              Re: Why PHP instead of Perl?

              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.


              Comment

              • Jerry Stuckle

                #8
                Re: Why PHP instead of Perl?

                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.
                >
                >
                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
                =============== ===

                Comment

                • Bob McConnell

                  #9
                  Re: Why PHP instead of Perl?

                  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.

                  Bob McConnell
                  N2SPP

                  Comment

                  • Skeleton Man

                    #10
                    Re: Why PHP instead of Perl?

                    >I know Perl, so should I learn PHP?

                    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. "


                    Chris


                    Comment

                    • Tim Streater

                      #11
                      Re: Why PHP instead of Perl?

                      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.

                      Comment

                      • Fat Sam

                        #12
                        Re: Why PHP instead of Perl?

                        jdoerr wrote:
                        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

                        Working...