w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
How can I print out the version of perl being run, from the perl script itself?

Use the predefined Perl variable $] or the more current $^V within a perl script:

print "Perl version: $]
";

Example output:

Perl version: 5.018002

(Perl 5.18.2)

For more special variables, please see perlvar or http://www.kichwa.com/quik_ref/spec_variables.html.





© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.