http://qs321.pair.com?node_id=168764


in reply to Please 'hack' nicely...

I'll agree with your definition of "hack", with a side comment. Perl is such a rich language that I am learning new features every time I start a project. Because of that, yesterday's "wonderfully clean code" becomes today's "childish hack".

For example: I've recently gotten serious about using map and grep, and suddenly all those awkward foreach loops I've written look like Fred Astaire in Frankenstein boots. Sure, they work, but it's a long way from the most graceful solution!


"All you need is ignorance and confidence; then success is sure."-- Mark Twain

Replies are listed 'Best First'.
Re: Re: Please 'hack' nicely...
by Biker (Priest) on May 23, 2002 at 13:56 UTC

      That said, guess who wrote:

      The argument against using an operator for other than its primary purpose strikes me the same as the old argument that you shouldn't have sex for other than procreational purposes. Sometimes side effects are more enjoyable than the originally intended effect.

      See answer here

        That being said, I'd never grep someone in a void context myself.
        :-)
        ____________

        Makeshifts last the longest.