in reply to is use strict a compile time directive?
This is important because it allows typos to be caught even if they are along execution paths your program didn't take in testing. (Catch errors early and all that.)use strict; print "This is executed at run-time\n"; $undeclared_var = "this will be caught";
In fact the strict vars, and strict subs checks are both compile time. But checking refs is a run-time issue, and propagation to eval is also a run-time issue. So the compile-time declaration has some run-time and some compile time effects.
If you want a fuller explanation of how strict.pm works, you can try Re (tilly) 1: How does strict work?.
|
|---|