n be used. For example, if the data files were in JSON format: MyTests->run_data_tests( match => qr/\.json$/, parser => sub { decode_json( $_[0]->slurp_raw ) }, ); Note that the argume