perllexwarn(1perl)

perllexwarn1perl

Perl lexical warnings

Overview

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.

From perl 5.44.0-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.