use version;
See version (the lower-case one, by John Peacock).
Hugo | [reply] [d/l] |
I'm running 5.8.3, and I notice that perldata certainly suggests that v-strings are deprecated, but the only mention I could find in perldoc -f use suggests that the 1.002003 form is preferred for backward compatibility reasons, but it doesn't seem to say anything about forward compatibility. But I guess that's better if you want to make all your Perls happy. | [reply] [d/l] [select] |
1.002_03, IIRC.
On the other hand, v1.2.3 will still work, but it will create a "version object", not a v-string, which will stringify to (IIRC) 1.2.3, and numify to (IIRC) 1.00203.
You should test everything I'm saying, as I likely do not Recall Correctly.
| [reply] [d/l] |
| [reply] [d/l] |