in reply to Perlmonk Oedipus Complex?
Some of what it seems you had interpreted as dislike of C is not. C is a great portable assembly language. Perl resembles C in many ways, and it is easy to program Perl as if it was C.
However programming Perl as if it was C gives you all of the disadvantages of both languages. C forces you to manage a lot of low-level stuff and gives you back speed. If you try that in Perl you will write slow Perl with bug counts similar to C code. This is not good.
The classic example is the C-style for loop versus the Perl-style foreach loop. When you code in Perl style you eliminate the very common off-by-one error, you write less code, and it will run faster. And since what you write is very directly what you mean, it is easier to read as well.
So while I have nothing against C, I have a lot against people coding Perl as if it was C. In fact I think that as soon as they work on that habit they will find that their Perl has improved a lot.
When in Rome...
|
|---|