in reply to eval question

I just don’t like “clever solutions” anymore.   The strategy that always seems to work best, at least for yours truly, is to find the simplest and most-obvious way to write code that expresses what you truly mean to say.   Then, let the mighty Perl interpreter do the rest.   After all, microprocessors are never going to slow down anytime soon.   They’ll only become faster.   But software maintenance and development costs will only increase.   And it will be the “clever” solutions, i.e. “the ones that surely must have mightily impressed the programmer himself,” that will bite you in the a*s first.   (Usually at three o’clock in the morning.)

Replies are listed 'Best First'.
Re^2: eval question
by rhymejerky (Beadle) on Jan 07, 2011 at 02:37 UTC
    I guess I was looking for a cleaner solution than a more clever solution. With the hash, I was able to cut out 100 lines of repeated code and I can easily add addition operation using the hash. But I agree with you, I rather read longer code that is self explanatory than a bunch of clever hacks string together