On Wed, Sep 10, 2008 at 12:29:57AM -0700, Michael G Schwern wrote: > Nicholas Clark wrote: > > On Tue, Sep 09, 2008 at 10:12:24PM -0400, David Golden wrote: > >> Certainly, I'd have a higher CPANTS score if I could start adding "use > >> warnings" to my code. ;-) > > > > Wouldn't it be simpler to send a patch to domm that makes the warnings point > > credited if the module states a requirement on perl pre 5.006, and has a -w > > on the #! line? > > A very cunning plan, but for one small problem. Modules don't have #! lines.
Oh, but they *could* have them. And I think that is a perfect solution. CPANTS should check whether modules have a shebang line, and if so whether it contains -w. If it does then the author has asserted that the module runs cleanly with warnings enabled and should receive the kwalitee point. IMPORTANT: This email (and any accompanying attachments) is intended for the use of the individual addressee(s) named above and may contain information that is confidential, privileged or unsuitable for people who do not read this disclaimer. If you are not he intended recipient or the person responsible for delivering this message to the intended recipient, then what are you doing reading this? Any review, use, alteration, disclosure or distribution of this email (including any attachments) is prohibited. (Unless you really want to.) The author disclaims all responsibility for the contents of this message and wonders why he bothered writing it. He certainly doesn't agree with the opinions contained therein and will not defend them. Furthermore, he urges you to do the same. -- Paul Johnson - [EMAIL PROTECTED] http://www.pjcj.net