Hello Dan,
I'd like to be able to ignore the "Callback called exit" warning (since I'm doing it on purpose <g>); how can I do it??
That's presumeably not a warning but a fatal error?! They can be
trapped, but as the reason lies probably somewhere within your code, you
should rather try to fix the error.
On a more general note, is there a mechanism (other than reading the source code) to determine what warnings categories
are actually available??
You can set warnings and die messages at run-time. So you won't be able
to find out the message's text in advance:
for my $n (0..20){
warn ("I don't like this number $n\n") if rand($n)>10;
}
Or do you mean this:
form 'perldiag':
These messages are classified as follows (listed in increasing order of
desperation):
(W) A warning (optional).
(D) A deprecation (optional).
(S) A severe warning (default).
(F) A fatal error (trappable).
(P) An internal error you should never see (trappable).
(X) A very fatal error (nontrappable).
(A) An alien error message (not generated by Perl).
The majority of messages from the first three classifications above (W,
D & S) can be controlled using the warnings pragma.
HTH,
Dominik