for my $todo ($already_done .. $final_step){ do_step1() if $todo == 1; do_step2() if (-e step_1_done);