From: "Peña, Botp" Date: 2005-03-21T16:10:27+09:00 Subject: Re: equivalent idiom for ruby " perl -pe 's/(\d+)/localtime($1)/e '" 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 //