Equivalent to Perl Use Strict

Is there an equivalent in Julia of the Perl Use Strict compiler flag? This means that all variables must be declared.
Very useful for the case I just had where I mistyped a variable name when assigning a string value (in Pythin I add) then used a different variable name to operate on it. Use Strict catches typos like this.

I may have asked the same question some time ago…

A variable not in local scope can still be assigned in global scope at any point before calling a function. And, strictly speaking, compilation may not actually happen before that anyway, so I am not sure how this would be useful.