Xymph's Overture

#!/usr/bin/perl
print "Hello, world!\n";
No, that wasn't my first Perl script. I've actually written somewhat longer scripts, and modified other people's scripts regularly, but I don't have a sufficient understanding of the language to write longer scripts from scratch yet. So by way of a belated New Year's resolution, I recently picked up Programming Perl (a.k.a. the Camel book) to learn it from the ground up. There are perhaps better books to learn the language from, but since I'm already somewhat familiar with Perl (and have plenty of experience in other languages like C, Ada and Shell), I figure I'll be fine, and having the definitive reference on the language around is more useful in the long run anyway. My goal for embarking on this endeavour is to eventually add some new database-driven features to this site (which means dusting off my old SQL knowledge as well), and while it may take a while before you'll see the first results, it is a fun learning experience already.

Link of the Day: Welcome to the White House - WWW.WHITEHOUSE.ORG. Not to be confused with... exactly. Thanks SurlyBitch.
Story of the Day: Pet lizards feast on owner's corpse. Not for overly sensitive stomachs. Thanks rand029 and the many others that sent this in.
Wild Science: Future Tech: Really Special Forces. Thanks JTMauney.
Weird Science: Goat Milk Carries Spider Silk in Canada Experiment. Thanks Nicole.

View : : :
20.
 
Re: Noooooooo.....
Jan 18, 2002, 14:39
anon@24.50
20.
Re: Noooooooo..... Jan 18, 2002, 14:39
Jan 18, 2002, 14:39
anon@24.50
 
Perl isn't even remotely close to being "one of the fastest" programming languages, which isn't overly surprising given its architecture.

You're thinking of Doug Bagely's Shootout, in which he neglects to actually optimize PHP because he feels that the average person wouldn't. That's fine and dandy, but you won't find production environments like that, unless they're filled with people that will be taking that sales job at Radio Shack in the next month or two.

http://www.bagley.org/~doug/shootout

You'll see many comparisons for performance here. Note that this is a pretty small set of things that one will actually do when you program for a living, so you shouldn't really base your life decisions on it. His methodology isn't perfect, and many of the submitters (of which I am one) have done things they wouldn't do (for the sake of clarity) just to squeeze on that extra bit of time.

Perl is a very complex language, and it's impossible to learn in three days. You can learn a subset of Perl very quickly, but that's hardly synonymous with fluency. It's a novel and effective tool, but it's a rather inelegant language. This is something Perl 6 hopes to address.
The real reason it's used by a lot of sites, though, lies mostly in its age and use in history. People learn Perl, because other people have used Perl for web work, and then the cycle goes on. These people are hired out, and it becomes a defacto standard. There's no harm in that, but it really has nothing to do with Perl's technical qualifications.
Date
Subject
Author
1.
Jan 18, 2002Jan 18 2002
anon@64.228
2.
Jan 18, 2002Jan 18 2002
3.
Jan 18, 2002Jan 18 2002
 C++
anon@209.26
17.
Jan 18, 2002Jan 18 2002
 20.
Jan 18, 2002Jan 18 2002
  Re: Noooooooo.....
anon@24.50
25.
Jan 18, 2002Jan 18 2002
29.
Jan 18, 2002Jan 18 2002
anon@24.50
4.
Jan 18, 2002Jan 18 2002
anon@66.56
5.
Jan 18, 2002Jan 18 2002
6.
Jan 18, 2002Jan 18 2002
anon@165.122
7.
Jan 18, 2002Jan 18 2002
anon@193.237
9.
Jan 18, 2002Jan 18 2002
anon@194.70
13.
Jan 18, 2002Jan 18 2002
anon@206.225
8.
Jan 18, 2002Jan 18 2002
  PHP
10.
Jan 18, 2002Jan 18 2002
   Re: PHP
12.
Jan 18, 2002Jan 18 2002
   Re: PHP
anon@62.254
14.
Jan 18, 2002Jan 18 2002
    Re: PHP
anon@208.191
11.
Jan 18, 2002Jan 18 2002
15.
Jan 18, 2002Jan 18 2002
anon@128.32
16.
Jan 18, 2002Jan 18 2002
18.
Jan 18, 2002Jan 18 2002
19.
Jan 18, 2002Jan 18 2002
anon@62.188
27.
Jan 18, 2002Jan 18 2002
anon@67.82
28.
Jan 18, 2002Jan 18 2002
anon@67.82
36.
Jan 20, 2002Jan 20 2002
anon@24.243
37.
Jan 21, 2002Jan 21 2002
anon@24.151
38.
Jan 21, 2002Jan 21 2002
21.
Jan 18, 2002Jan 18 2002
anon@128.32
22.
Jan 18, 2002Jan 18 2002
anon@128.32
23.
Jan 18, 2002Jan 18 2002
anon@207.50
24.
Jan 18, 2002Jan 18 2002
anon@12.228
26.
Jan 18, 2002Jan 18 2002
anon@128.32
35.
Jan 19, 2002Jan 19 2002
anon@24.151
30.
Jan 19, 2002Jan 19 2002
anon@65.80
31.
Jan 19, 2002Jan 19 2002
anon@24.162
32.
Jan 19, 2002Jan 19 2002
anon@65.80
33.
Jan 19, 2002Jan 19 2002
34.
Jan 19, 2002Jan 19 2002