$n = 10; while( $n ){ print $n--; sleep 1 }