Peña, Botp
3/21/2005 7:10:00 AM
WATANABE Hirofumi [mailto:eban@os.rim.or.jp] wrote:
//$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
//