http://qs1969.pair.com?node_id=524144


in reply to Passing Dynamic Value to Test::More tests

An alternate approach is:

# compile time use Test::More; # run time my $test_count = 2; plan( tests => $test_count );

You can use this when you don't have tests that execute in BEGIN, CHECK, or INIT blocks.