-w is the same as "use warnings". Warnings turns on optional warnings that may indicate problems with your code. Warnings will not stop your program from running, just send a message when it encounters something. Warnings also tend to be more run-time messages.
"use strict" restricts the use of unsafe constructs. Preventing the code from running if you do "dangerous" things. If something fails the "use strict" test the program will not run.
strict and warnings are well used together as they can help you prevent and catch different types of errors.
In reply to Re: use strict
by lhoward
in thread use strict
by Ignorance
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |