Equivalent idiom for ruby " perl -pe 's/(\d+)/localtime($1)/e '"

//$1 becomes a result of the match last time, beause $1 is
//evaluated before gsub! is called.
// ...
//% echo 1111111111 |ruby -pe 'sub(/^\d+/){Time.at($&.to_i)}'
//Fri Mar 18 10:58:31 JST 2005
//

That explains it clearly. Thanks for the great tip, eban.

kind regards -botp

//--
//eban
//

···

WATANABE Hirofumi [mailto:eban@os.rim.or.jp] wrote: