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
No, use strict
can't be made to issue warnings rather than die. All it does is set a few bits in the magic $^H
variable, which triggers various things in the guts of the Perl interpreter.
No, use warnings
isn't warning about the same things as use strict
kills you for. For instance, use warnings
will warn you about variables used only once (which might be the result of typos).