On 12/14/2010 3:45 PM, Kwan Lowe wrote: > > My experience is that the quicker you can get things done in a > language, the more likely that you will find bad code examples. I've > seen Perl code that does a system 'ls' then counts characters in the > string to extract the size information. But that's probably someone who learned to code in C. If you started with perl you'd almost never do character by character operations. > Some years ago I saw a piece of code that generated code... The > generated code would individually load every element of an array with > a zipcode for lookups. Yes... Rather than load the array directly, > the code generated a perl script that, on each line, loaded a number > into a new element of the array. The generated code was thousands of > lines long, took an hour to start up, and needed a E250 to run. At the > time my first thought was that the developer got paid based on the > number of lines of code... Still can't imagine why he would take such > an approach. I don't think there is any explanation for that one. -- Les Mikesell lesmikesell at gmail.com