use happens at compile time so you can use syntax that is new to 5.6.0 without causing strange errors in other versions of Perl. Now, what should 5.6.0->import() do?
-
tye
(but my friends call me "Tye")
| [reply] [d/l] [select] |
I believe that use varies from require in that it occurs at compile time, not run-time, thus, if you have a module 'Module' that can only be loaded if you're using 5.6, the following bits of code will function differently:
require 5.6;
use Module;
# Module is loaded *before* 5.6 test is done
use 5.6;
use Module;
# If we're < 5.6, we get an error message before Module is loaded.
If I'm incorrect in this, by all means correct. | [reply] [d/l] |