Which safety net do you use in Perl?

后端 未结 5 1943
庸人自扰
庸人自扰 2020-12-10 15:50

Which safety net do you use?

use warnings;

or

use strict;

I know that

5条回答
  •  孤城傲影
    2020-12-10 16:31

    use strict;
    #use warnings;
    use diagnostics; # "This module extends the terse diagnostics..." by http://perldoc.perl.org/diagnostics.html
    

    Both! But I prefer diagnostics, instead of warnings, which give you some more information.

提交回复
热议问题