$PERLV doesn't contains useful value
Bug #344801 reported by
Xavier Brochard
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Woda |
Fix Released
|
Low
|
Malcolm Fitzgerald | ||
4.610 |
Fix Released
|
Low
|
Malcolm Fitzgerald |
Bug Description
$PERLV contains Perl version, based on this old code:
$PERLV = $] + 0.0; # what Perl are we runing
$] return the perl version in the old format: version + patch level / 1000
with Perl 5.10 it returns perl 5.01 (the following zero are removed)
which is not useful for bug reports
$^V is the modern representation of Perl version. It contains revision number, version, sub-version
this code is useful:
$PERLV = $^V; # what Perl are we runing
Warnings:
I haven't checked when $^V was introduce in Perl.
I haven't checked that sub findMYSubs is still working (perl 4 and perl 5)
Documentation about these variables is in perlvar.
description: | updated |
Changed in woda: | |
milestone: | none → merge-mf-and-xavier |
status: | New → Confirmed |
Changed in woda: | |
assignee: | nobody → Malcolm Fitzgerald (malcolm-notyourhomework) |
To post a comment you must log in.
findMYSubs works with Perl 5.8.8
just uncomment the call to findMYSubs and run AdmWodaStatus to see it in action