http://qs321.pair.com?node_id=11123775


in reply to Backdating strict

Lots of good answers already, but there's one point I didn't see anyone else making already:

strict is a lexical pragma.

The practical significance of this is that you don't have to slap use strict at the top of your old code and swallow the whole elephant in one gulp. As you're revisiting your code to maintain or debug it, you can add strict one sub, or even just one block, at a time, gradually increasing the proportion of the code which is running under strict - and also limiting how much of it is broken at a time as you are in the process of improving it.