in reply to Creating modules for use on CPAN

It means that your code should run without any errors or warnings generated if "use strict" and "use warnings" are in effect. Ideally you should h2xs to generate your module template. h2xs automatically puts "use strict" and "use warnings" in your module.
h2xs -A -X -n File::CMP
(merlyn will surely recognize where I stole that example from...)
My understanding is that "use warnings" is the prefered usage since its introduction and that -w is depricated (though still well supported). For this reason I've gotten in the habbit of saying "use warnings" instead of -w.

Replies are listed 'Best First'.
RE: Re: Creating modules for use on CPAN
by KM (Priest) on Jun 12, 2000 at 22:37 UTC
    Not 'use warnings', but -w. The warnings pragma came into the Perl distrobution I believe in 5.005_63, so not everyone will have it, but everyone has -w. On an aside, of you are using a pragma, or something which came out in a version of Perl (for example, say you use our(), which came in 5.6), you may want put at the top of your script:

    require 5.6;

    Cheers,
    KM