نديم ابن ﺤﻣﻮﺪﺓ الخمير - Nadim Khemir > Carp-Diagnostics > try_me.pl

Download:
Carp-Diagnostics-0.05.3.tar.gz

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Source  

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
syntax highlighting: