
Test::block allows one to specify the number of expected tests at a finer level of granularity than an entire test script. it is built with test::builder and plays happily with test::more and friends.
note: test::block has been marked deprecated by its author. it was written before subtests existed in tap and test::more. these days subtests will probably be a better option for you.