Re: Popularity of Perl as opposed to other languages
by ysth (Canon) on Jun 02, 2008 at 06:12 UTC
|
| [reply] |
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) | [reply] |
|
|
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";
}
| [reply] [d/l] |
|
|
haha :D that was funny :)
| [reply] |
|
|
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.
| [reply] |
|
|
I dont know if I use Inline::PERL I capitalize Perl as a matter of habbit, which I will break right now.
| [reply] |
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.
| [reply] |
Re: Popularity of Perl as opposed to other languages
by rovf (Priest) on Jun 02, 2008 at 09:08 UTC
|
| [reply] |
|
|
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
| [reply] |
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. | [reply] |
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
| [reply] |
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.
| [reply] |
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.
| [reply] |
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
| [reply] |