++ed by:

297 non-PAUSE users.

Gurusamy Sarathy


warning - Perl pragma to control


    use warning;

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

    use warning;
    no warning "unsafe";


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.