Take the 2-minute tour ×

Is there a command or a variable that shows me all the different warnings which get enabled when I use the warning-pragma?

share|improve this question
add comment

2 Answers

up vote 6 down vote accepted

perldoc perllexwarn shows the hierarchy of categories warnings uses.

share|improve this answer
add comment


perldoc perldiag

The output starts:


perldiag − various Perl diagnostics



(W) A warning (optional).
(D) A deprecation (optional).
(S) A severe warning (enabled by default).
(F) A fatal error (trappable).
(X) A very fatal error (nontrappable).

The majority of messages from the first three classifications above (W, D & S) can be controlled using the "warnings" pragma.

share|improve this answer
add comment

Your Answer


