Adds Perl version detection (#2206)

* Adds Perl version detection

* Follows @al-cheb advice 👍
This commit is contained in:
Juan Julián Merelo Guervós
2020-12-07 13:46:43 +01:00
committed by GitHub
parent 80ce7c1c6e
commit 3cd4e423d8
2 changed files with 6 additions and 0 deletions

View File

@@ -49,6 +49,11 @@ function Get-NodeVersion {
return "Node $nodeVersion"
}
function Get-PerlVersion {
$version = $(perl -e 'print substr($^V,1)')
return "Perl $version"
}
function Get-PythonVersion {
$result = Get-CommandResult "python --version"
$version = $result.Output | Take-OutputPart -Part 1

View File

@@ -38,6 +38,7 @@ $markdown += New-MDList -Style Unordered -Lines @(
(Get-ErlangVersion),
(Get-MonoVersion),
(Get-NodeVersion),
(Get-PerlVersion),
(Get-PythonVersion),
(Get-Python3Version),
(Get-RubyVersion),