Perl: the Markov chain saw | |
PerlMonks |
Invalid sub ignored on use strict;by wil (Priest) |
on Apr 30, 2002 at 10:57 UTC ( [id://163022]=perlquestion: print w/replies, xml ) | Need Help?? |
wil has asked for the wisdom of the Perl Monks concerning the following question:
Hi
I was going back over very old code the other day, and came across the following block:
Note the typo in the line line or dir("Can't exe... This is actually run under use strict;. Now what's got me really confused is that this code has been working perfectly for months, and never once returned an error - and yes, the block has been evaluated and proven true many times. How did this escape the strictness of use strict;? I would of thought that using strict would of picked up on this typo and wouldn't allow the script to run? It would be most appreciated if anyone can shed any light on the matter! I'm baffled. - wil
Back to
Seekers of Perl Wisdom
|
|