The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

warning - Perl pragma to control

SYNOPSIS

    use warning;

    use warning "all";
    use warning "deprecated";

    use warning;
    no warning "unsafe";

DESCRIPTION

If no import list is supplied, all possible restrictions are assumed. (This is the safest mode to operate in, but is sometimes too strict for casual programming.) Currently, there are three possible things to be strict about:

warning deprecated

This generates a runtime error if you use deprecated

    use warning 'deprecated';

See "Pragmatic Modules" in perlmod.