in reply to Why use warnings? -w
Putting -w in the shebang line makes warnings global, but use strict and use warnings are lexically scoped. You can also customize what degree of strictness you want or turn it off inside a scoped block. It's near universally encouraged to use strict and warnings because it's helpful to the programmer, probably why Javascript implemented it also, though Javascript's use strict is not as flexible.