Why not just use use Test::More 'no_plan' instead?
In reply to Re: Test Files - dynamic test counter by adrianh in thread Test Files - dynamic test counter by considertheant