From: James Edward Gray II Date: 2005-05-07T11:46:02+09:00 Subject: Re: new to ruby - please help w/ code structure? On May 6, 2005, at 7:55 PM, Corey wrote: >> but to take exactly what you typed: >> >> if free||os and line=~new_re >> cvs host ; host,free,os=nil ; end >> >> OR >> >> (cvs host ; host,free,os=nil ; next) if free||os and line=~re >> >> > > Perfect -- many thanks! Funny, I was thinking just the opposite. :D Us Ruby guys love pretty code. That's you're Perl self talking, trust me. Let it die. You won't miss it, I promise. Try this question on for size: Give me one single advantage to the above changes? Shorter? Please. Harder to code (that's why you asked), harder to understand, harder to change, etc. For what? You dropped a few lines. Ruby is truly a beautiful language. Give it a chance to work its magic on you and don't be surprised if you eventually find yourself saying, "No, that's too ugly. I can do better..." Just a small piece of advice, from one ex-Perl junkie to another. No offense intended. :) James Edward Gray II