in reply to parseRE v1.0

That's the first time I've seen "use 5.N" instead of "require 5.N". Is there any reason to favor "use" over "require"?

Replies are listed 'Best First'.
(tye)RE: use 5.6.0 ?
by tye (Sage) on Oct 25, 2000 at 22:50 UTC

    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")
RE: use 5.6.0 ?
by Fastolfe (Vicar) on Oct 25, 2000 at 22:52 UTC
    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.