in reply to Re^3: How to tell what version of Perl a script needs?
in thread How to tell what version of Perl a script needs?

Those tell me how to determine the version of perl ($^V) and how to enforce that that version be no lower than a particular release (require/use). They do not do what I am asking for. Thank you for the suggestion, though.
  • Comment on Re^4: How to tell what version of Perl a script needs?

Replies are listed 'Best First'.
Re^5: How to tell what version of Perl a script needs?
by tlm (Prior) on Apr 19, 2005 at 21:55 UTC

    Pardon me for being so dense, but after multiple readings of your posts on this thread, I am still scratching my head as to what you actually mean. You write:

    ...it suddenly occurred to me that, when they move the application I wrote around, it might break if the provided perl is too low. I would like to be able to put in a 'use XYZ' line to at least document what version is required.

    ...which to me sounds exactly what a statement like
    use v5.6.0;
    is supposed to do (the script will not compile with versions of perl below v5.6.0, and this is all documented in the links I posted). Therefore I am puzzled by your reply above.

    the lowliest monk

      He's not asking how to require a version of Perl (as use v5.6.0 would do),
      he's asking how to determine which version of Perl is required (so he could add a use v5.6.0 directive, for example).