From: Jim Freeze Date: 2005-03-21T21:41:20+09:00 Subject: Re: equivalent idiom for ruby " perl -pe 's/(\d+)/localtime($1)/e '" * "Pe�a, Botp" [2005-03-21 16:08:41 +0900]: > Jim Freeze [mailto:jim@freeze.org] wrote: > > // ruby -pe '$_.gsub!(/(\d+)/, Time.local("\\1".to_i).to_s)' > ///var..access.log > > Jim, thanks for that quick tip. It has some slight drawbacks though. I get > all January 1sts. Oops. I should have submitted the block version of gsub. -- Jim Freeze Code Red. Code Ruby