|Syntactic Confectionery Delight|
Strict isn't strict enoughby davies (Parson)
|on Dec 31, 2011 at 16:22 UTC||Need Help??|
davies has asked for the
wisdom of the Perl Monks concerning the following question:
Long ago, I remember reading some definitions. From memory, they were:
I thought I had found a bug, but it turns out that it is documented. I have two files.
This surprised me by working when I expected a compile time error. The docs say (my italics):
This generates a compile-time error if you access a variable that wasn't declared via our or use vars, localized via my(), or wasn't fully qualified.
So it's a feature, not a bug, but it's not a feature I like, as I'm just as capable of making typos in fully qualified names as in unqualified names. I tried use dominatrix, but that failed. Is there anything that will report the use of undeclared fully qualified variable names?