Can 'use strict' warn instead of error

前端 未结 5 1212
没有蜡笔的小新
没有蜡笔的小新 2021-01-19 04:31

When using use strict perl will generate a runtime error on unsafe constructs. Now I am wondering if it is possible to have it only print a warning instead of c

5条回答
  •  别那么骄傲
    2021-01-19 05:04

    Warnings can be made fatal — see perllexwarn — but strict errors can't be made non-fatal.

    Why do you want to do that? I suspect an XY problem.

提交回复
热议问题