warnings(3p) Perl Programmers Reference Guide warnings(3p)
warnings(3p) Perl Programmers Reference Guide warnings(3p) # warnings(3p) Perl Programmers Reference Guide warnings(3p) NNAAMMEE # warnings - Perl pragma to control optional warnings SSYYNNOOPPSSIISS # use warnings; no warnings; # Standard warnings are enabled by use v5.35 or above use v5.35; use warnings "all"; no warnings "uninitialized"; # or equivalent to those last two ... use warnings qw(all -uninitialized); use warnings::register; if (warnings::enabled()) { warnings::warn("some warning"); } if (warnings::enabled("void")) { warnings::warn("void", "some warning"); } if (warnings::enabled($object)) { warnings::warn($object, "some warning"); } warnings::warnif("some warning"); warnings::warnif("void", "some warning"); warnings::warnif($object, "some warning"); DDEESSCCRRIIPPTTIIOONN # The "warnings" pragma gives control over which warnings are enabled in which parts of a Perl program. ...