in reply to use version confusion
To the best of my knowledge, use v5.10.1 merely indicates to perl that you'd like to enable all features that exist in v5.10.1 and that your script is not expected to run on older perl versions, or conform to their restrictions and limitations. It cannot be used to "downgrade" a newer perl version to an older one by emulating the old version's behavior.
It is possible to use $^V (aka $PERL_VERSION if you use English;) to check the version of perl you're running on and use different code for different versions, but this is of debatable utility. If you need your code to run on older perl versions, it's best to just stick to constructs they allowed and not use newer features.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: use version confusion
by 1s44c (Scribe) on Jul 06, 2014 at 12:35 UTC | |
by Anonymous Monk on Jul 06, 2014 at 12:56 UTC | |
by AppleFritter (Vicar) on Jul 06, 2014 at 12:37 UTC | |
by perlfan (Parson) on Jul 07, 2014 at 11:56 UTC | |
by jellisii2 (Hermit) on May 12, 2016 at 17:33 UTC |