My @int = (1..100); For (@int) { do something or sleep(1); }