in reply to Re^6: Why version strings?
in thread Why version strings?

Can we just conclude that you don't know the answer to my question:
I don't know whether there's a (single-line) syntax that at compile time checks for 5.10, but which doesn't enable features.
either?

Replies are listed 'Best First'.
Re^8: Why version strings?
by ikegami (Patriarch) on Mar 29, 2011 at 22:09 UTC

    Is that a weird way of letting me know that «BEGIN { require 5.010; }» is buggy in 5.10 and 5.12, but fixed in 5.14? That leaves

    • BEGIN { die if $] < 5.010_000 }
    • use 5.010; no feature ":5.10";
    • { use 5.010; }
Re^8: Why version strings?
by chromatic (Archbishop) on Mar 29, 2011 at 22:00 UTC

    How about:

    BEGIN { die "Not new enough" if $] < 5.016; }