|Perl Monk, Perl Meditation|
Re: Re: C vs. Perlby sauoq (Abbot)
|on Oct 22, 2003 at 21:18 UTC||Need Help??|
Some criticism about your reply is in order.
And still you fail to convince me that I couldn't do the same in C.
He wasn't trying to. Read his first line again: "I was wondering how C makes certain things harder to write and perl (and similar languages) makes it easy to write."
Apparently, you agree with his premise because you said, "It's simply that Perl is easier and faster to code."
He's just wondering "why"...
The reason is that Perl was designed so that code for a problem would map more easily to the programmer's way of thinking about it and C was designed so that code for a problem would map more easily to the machine's way of executing it.
BTW, as for your one liner, how likely do you think it is that you would actually have to do that on the command line? It's far more likely that that task would be part of a larger program... in which case using -a probably wouldn't help at all.
-sauoq "My two cents aren't worth a dime.";