Should I use common::sense or just stick with `use strict` and `use warnings`?

后端 未结 9 1000
自闭症患者
自闭症患者 2021-01-08 00:37

I recently installed a module from CPAN and noticed one of its dependencies was common::sense, a module that offers to enable all the warnings you want, and none that you do

9条回答
  •  悲&欢浪女
    2021-01-08 00:58

    Not everyone's idea of common sense is the same - in that respect it's anything but common.

    Go with what you know. If you get undef warnings, chances are that your program or its input is incorrect.

    Warnings are there for a reason. Anything that reduces them cannot be useful. (I always compile with gcc -Wall too...)

提交回复
热议问题