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

CroakingSub

An example of how to use Carp::Diagnostics.

Diagnostics

Default rule '$default_rule_name', in rule '$name', doesn't exist.

The default rule of a FirstAndOnlyOneOnDisk META_RULE must be registrated before the META_RULE definiton. Here is an example of declaration:

 AddRule 'c_o', [ '*/*.o' => '*.c' ] => \&C_Builder ;
 AddRule 'cpp_o', [ '*/*.o' => '*.cpp' ] => \&CPP_Builder ;
 
 AddRule [META_RULE], 'o_cs_meta' =>
        [\&FirstAndOnlyOneOnDisk, ['cpp_o', 'c_o' ], 'c_o'] ;
                                  ^- slave rules -^    ^-default