in reply to SIMPLE way to write these?
foreach (1..10){print "$_\n"}
or, with while:
as Choroba said before