sub foo { readstuff(); formatstuff(); writestuff() if check_stuff(); }