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.
In reply to Re: Passing Dynamic Value to Test::More tests
by chromatic
in thread Passing Dynamic Value to Test::More tests
by jesuashok
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |