I've worked with PERL for a couple of years. I am not a programer but I like PERL and I've written a few web applications with it. But I've noticed that more and more sites are using ASP or PHP and less are using PERL. Am I correct? Is there an advantage to the other languages or is it simply a matter of choice or just preference? I find that PERL is easy for managing DB with DBI and I am starting to get into CGI.pm (I've been using straight HTML) Obviously most here prefer PERL, but why? And how different is PERL than ASP? This may be a weird meditation but I was guided here from perlguru in the hopes of finding the true path.
  • Comment on Popularity of Perl as opposed to other languages

Replies are listed 'Best First'.
Re: Popularity of Perl as opposed to other languages
by ysth (Canon) on Jun 02, 2008 at 06:12 UTC
Re: Popularity of Perl as opposed to other languages
by moritz (Cardinal) on Jun 02, 2008 at 06:35 UTC
    If you used PERL, did you use Inline::PERL?

    (The language is called "Perl", and the interpreter/compiler is called "perl". And both Perl and perl are case sensitive ;-)

    A nice read is Perl vs. PHP, which discusses the differences to PHP. There's also a little older thread here: Perl/CGI Vs PHP Vs ASP.

    (Updated: added reference)

      Shouldn't that module do something more like this?
      use Inline::Files; use Inline PERL; greeting("PERL"); __PERL__ SUB greeting { $foo = SHIFT @_ || $_[0]; $! = 1; # Turn buffering off FOR ($i=1, $i<=10, $i++) { @a[$i] = $i; } LOCAL $length = @a; PRINT "Hello, $foo\n"; }
        haha :D that was funny :)

      Is there an advantage to the other languages or is it simply a matter of choice or just preference?

      To elaborate on the points moritz has made and putting aside personal preferences, when it comes down to building that type of application its all about costs.

      To my knowledge the cheapest way to build that type of web application would be with a combination of PHP, MySQL and AJAX this may not be the best way. More complex applications would need perhaps the stronger glue provided by Perl.

      Using Open source software like PHP, Mysql and Perl etc can make a huge difference to the development costs of applications when compared to ASP etc.

      Two other major influences are Labour skill set and Labour costs. As a general rule Perl programmers are more skilled, thinner on the ground and as a result are paid more. PHP programmers are more available and are generally less skilled than their Perl counterparts, Small PHP applications can be coded relatively quickly consequently PHP development costs are lower. There are other considerations regarding hosting choice and availability most offer PHP hosting, ASP costs more.

      So at the end of the day its all about time and money, if the software is already in-house and hosting arranged it can become a different ball game. Each new application has to be costed on its merits taking into account all the advantages and disadvantages of the current circumstances and what's available at the time before tendering/estimating a price to the client.

      I dont know if I use Inline::PERL I capitalize Perl as a matter of habbit, which I will break right now.
Re: Popularity of Perl as opposed to other languages
by bingos (Vicar) on Jun 02, 2008 at 06:36 UTC

    Perl is a programming language, ASP (Active Server Pages) are a server-side script engine, that supports various programming languages including Perl.

Re: Popularity of Perl as opposed to other languages
by rovf (Priest) on Jun 02, 2008 at 09:08 UTC
    I've never worked with PHP, but I work, aside of Perl, with Ruby. Languages has always to do with matter of taste, of course. A second point of consideration is what addon software is available. Ruby and Perl both offer plenty of free stuff (on Rubyforge and CPAN, respectively). My impression is that you can get at the moment still more goodies for Perl than for Ruby. OTOH, for web programming, there is a very nice framework available for Ruby which is called "Ruby on Rails", which eases web development a lot. I don't know whether there exists plans to re-implement Rails for other languages.
    -- 
    Ronald Fischer <ynnor@mm.st>
      there is a very nice framework available for Ruby which is called "Ruby on Rails"
      There is a very nice framework available for Perl - Catalyst

      Unless I state otherwise, all my code runs with strict and warnings
Re: Popularity of Perl as opposed to other languages
by MisterEd (Initiate) on Jun 03, 2008 at 08:24 UTC
    Personally I like the flexibility in TIMTOWTDI, and Perl's typing. I find myself spoiled by Perl, especially when I need to switch over to C/C++ code.

    The last couple of years I've felt like a lone island of Perl based code in a sea of PHP hysteria, at least in the c/OSS project I oversee. However, I find that Perl just does the job and it's easier to follow codewise on complex projects over PHP. For me, it is also easier to secure web scripting wise, and to maintain with each platform update (aka "it still runs" when perl is updated). I guess I won't feel so alone now that I've officially entered the Monastery, after roughly 9 years or so of lurking in the shadows (anon monk?).

    Mister Ed

    PS - I did the same thing in using Perl in all caps, many years ago. I had read it in that form somewhere and picked up the bad habit of using it as an acronym for a couple of years thereafter until I was pounced on by a few folks for my lack of knowledge (another site). So don't feel too bad. It's a common mistake for some folks new to the culture/mindset.
Re: Popularity of Perl as opposed to other languages
by CountZero (Bishop) on Jun 03, 2008 at 05:43 UTC
    I don't think languages (programming or natural) should be a matter of popularity: if it was, we should all be learning to speak Chinese!

    CountZero

    A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

Re: Popularity of Perl as opposed to other languages
by Anonymous Monk on Jun 02, 2008 at 19:47 UTC

    The more you program, the easier it is for you to spot things you do and don't like in different languages, and thus the stronger your preferences tend to become.

Re: Popularity of Perl as opposed to other languages
by sasdrtx (Friar) on Jun 14, 2008 at 14:55 UTC
    I just saw this column in Dr. Dobb's the other day. Paul Jansen, managing director of TIOBE Software discusses the popularity of programming languages.

    His response to a question about "which languages are losing ground" mentioned C, C++, and Perl. The kicker is his reason for Perl's imminent demise: "...everyone has been waiting on a new major release for more than seven years. That is considered far too long."

    In response to the earlier question about languages that are gaining ground, Jansen said "Python managed to reach the top 10 because it is the truly object-oriented successor of Perl."

    Ugh. You could easily wonder if he has a personal grudge against Perl for some reason. Both those statements are silly, IMHO. But it's more evidence that Perl's image is not in very good shape.


    sas
Re: Popularity of Perl as opposed to other languages
by bradcathey (Prior) on Jun 03, 2008 at 02:02 UTC

    This is common topic around the monastery. I've had my own journey with the language de jour.

    —Brad
    "The important work of moving the world forward does not wait to be done by perfect men." George Eliot