2006-03-25 times ruby http://ruby-lang.org/ja/man/?cmd=view;name=Integer#times newbieには目から鱗のメソッド。ヒトのコードは勉強になる。 perl -e 'for my $x (0..10) {print $x,"\n"}' ruby -e 'for i in 0..10 do puts i end' ruby -e '10.times{|i| puts i}'