From: Kirk Haines Date: 2004-07-09T01:46:32+09:00 Subject: Re: Efficient way to do a simple Perl thing with Ruby On Fri, 9 Jul 2004 01:21:29 +0900, Kirk Haines wrote > My Ruby-fu is failing me at coming up with a relatively concise yet > readable way to do this in Ruby. My implementation is, I am sure, > much longer than necessary. > > So, anyone have any ideas? How would you do this? And....nevermind. I figured out where I was being thick. gsub with a block works nicely. Kirk Haines