Lines Matching defs:diagnostics
1 package diagnostics;
5 diagnostics, splain - produce verbose warning diagnostics
9 Using the C<diagnostics> pragma:
11 use diagnostics;
12 use diagnostics -verbose;
14 enable diagnostics;
15 disable diagnostics;
24 =head2 The C<diagnostics> Pragma
26 This module extends the terse diagnostics normally emitted by both the
34 use diagnostics;
38 compilation will then be subject(ed :-) to the enhanced diagnostics.
43 you may not use C<no diagnostics> to turn them off at compiletime.
48 any other diagnostics. The $diagnostics::PRETTY variable can generate nicer
59 more than a link to the (executable) F<diagnostics.pm> module, as well as
60 a link to the F<diagnostics.pod> documentation. The B<-v> flag is like
61 the C<use diagnostics -verbose> directive.
63 $diagnostics::PRETTY variable. Since you're post-processing with
73 use diagnostics;
107 use diagnostics; # checks entire compilation phase
112 disable diagnostics; # only turns off runtime warnings
117 enable diagnostics; # turns back on runtime warnings
122 disable diagnostics;
134 to be honored, but only after the diagnostics::splainthis() function
138 There is a $diagnostics::DEBUG variable you may set if you're desperately
141 BEGIN { $diagnostics::DEBUG = 1 }
146 Not being able to say "no diagnostics" is annoying, but may not be
152 BEGIN { $diagnostics::PRETTY = 1 }
344 elsif( s/^=for\s+diagnostics\s*\n(.*?)\s*\z// ) {
402 die "No diagnostics?" unless %msg;
499 # then we've turned off diagnostics.