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

# [NAME](#NAME)

perllexwarn - Perl Lexical Warnings

# [DESCRIPTION](#DESCRIPTION)

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.

2026-08-31 perl v5.44.0

---

Document: perllexwarn(1) from perl 5.44.0-r1 (Chainguard OS)
Source: https://github.com/Perl/perl5.git
