PERLLEXWARN(1perl) Perl Programmers Reference Guide PERLLEXWARN(1perl)

perllexwarn - Perl Lexical Warnings

Perl v5.6.0 introduced lexical control over the handling of warnings by category. The "warnings" pragma generally replaces the command line flag -w. Documentation on the use of lexical warnings, once partly found in this document, is now found in the warnings documentation.
2021-05-23 perl v5.34.0