=head2 The C<diagnostics> Pragma
This module extends the terse diagnostics normally emitted by both the
=head2 The C<diagnostics> Pragma
This module extends the terse diagnostics normally emitted by both the
explicative and endearing descriptions found in L<perldiag>. Like the
other pragmata, it affects the compilation phase of your program rather
than merely the execution phase.
explicative and endearing descriptions found in L<perldiag>. Like the
other pragmata, it affects the compilation phase of your program rather
than merely the execution phase.
This module also adds a stack trace to the error message when perl dies.
This is useful for pinpointing what caused the death. The B<-traceonly> (or
This module also adds a stack trace to the error message when perl dies.
This is useful for pinpointing what caused the death. The B<-traceonly> (or
the stack traces. So if your script is dieing, run it again with
perl -Mdiagnostics=-traceonly my_bad_script
the stack traces. So if your script is dieing, run it again with
perl -Mdiagnostics=-traceonly my_bad_script