From: Daniel Schoch Date: 2009-03-04T01:24:43+09:00 Subject: Re: expanding environment variable Dominik Honnef wrote: > On [Wed, 04.03.2009 00:16], Daniel Schoch wrote: >> Perfect, thanks. I sometimes have a hard time with those efficient >> one-liners. It's all so cryptic. > > Well, the only really cryptic thing about this one is the regexp, but > thats just a matter of learning regular expressions. And well, the > rest are basic ruby idioms/features like blocks. Comes time comes > knowledge, you will get used to those one-liners :) That is true. I'm used to the old-fashioned programming of C, assembly and such. There, things go with baby-steps, you do one little thing at a time. All of a sudden with perl/ruby and such you can do tons of stuff with few lines. My brain is not wired for this. I have a hard time forming a ruby-worthy solution around a problem, as I'm always falling back to C's small step way of thinking. But you're right, comes time comes knowledge. -- Posted via http://www.ruby-forum.com/.