Info2: << Package: test-use-ok-pm%type_pkg[perl] Version: 0.02 Revision: 11 Description: Alternative to Test::More::use_ok Type: perl(5.6.0 5.8.0 5.8.1 5.8.4 5.8.6) License: Artistic Maintainer: Benjamin Reed Depends: << perl%type_pkg[perl]-core, test-simple-pm%type_pkg[perl] << BuildDepends: << fink (>= 0.26.0-1), perl%type_pkg[perl]-core, test-simple-pm%type_pkg[perl] << Source: mirror:cpan:modules/by-module/Test/Test-use-ok-%v.tar.gz Source-MD5: c49b0bbb37a6764b8b96d9fcef954ba2 SourceDirectory: Test-use-ok-%v UpdatePOD: true InstallScript: << %{default_script} mv %i/share/man %i/lib/perl5/%type_raw[perl] << DocFiles: MANIFEST* SIGNATURE Homepage: http://search.cpan.org/dist/Test-use-ok DescDetail: << According to the Test::More documentation, it is recommended to run use_ok() inside a BEGIN block, so functions are exported at compile-time and prototypes are properly honored. However, people often either forget to add BEGIN, or mistakenly group use_ok with other tests in a single BEGIN block, which can create subtle differences in execution order. With this module, simply change all use_ok in test scripts to use ok, and they will be executed at BEGIN time. The explicit space after use makes it clear that this is a single compile-time action. << <<