http://www.perlmonks.org?node_id=566572


in reply to Re: Toggling test plans with vim
in thread Toggling test plans with vim

<bias class="author">

If you do this sort of thing you might be interested in Test::Block where your example would be written as:

use Test::More 'no_plan'; use Test::Block qw( $Plan ); { local $Plan = 1; # carry out one test } { local $Plan = 3; # carry out our 3 tests }

</bias>