in reply to Wait Question

Can you give us more details? Are you executing system commands that go into the background perhaps?
What does "tlc" do?

It's best to post a complete, but minimal, working example.

non-Perl: Andy Ford