こんな書き方でもいけるんだ!!素直に感動。
foreach(1..10){
print “count $_ \n”;
}
実行結果
count to 1
count to 2
count to 3
count to 4
count to 5
count to 6
count to 7
count to 8
count to 9
count to 10
こんな書き方でもいけるんだ!!素直に感動。
foreach(1..10){
print “count $_ \n”;
}
実行結果
count to 1
count to 2
count to 3
count to 4
count to 5
count to 6
count to 7
count to 8
count to 9
count to 10
コメント