The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.


Test::Legacy::More - Test::More wrapper for use with Test::Legacy


  use Test::Legacy;
  use Test::Legacy::More;

  ...use Test::Legacy and Test::More as normal...


Both Test::Legacy and Test::More export functions called ok(), skip() and plan(). When you use them together you have to tell Test::More not to export those functions.

  use Test::Legacy;
  use Test::More import => [qw(!ok !skip !plan)];

Since the purpose of Test::Legacy is to transition to Test::More it can be a bit annoying to have to write that all the time. Test::Legacy::More simply does that work for you. It loads Test::More and supresses the exporting of any functions which might conflict with Test::Legacy. It otherwise works just like Test::More.