in reply to Display common "tuple" rendition of Perl $] variable

Alternatively

$ perl -E'say $^V' v5.38.2 $ perl -E'printf "%vd\n", $^V;' 5.38.2 $

see $PERL_VERSION

Cheers Rolf
(addicted to the Perl Programming Language :)
see Wikisyntax for the Monastery

Replies are listed 'Best First'.
Re^2: Display common "tuple" rendition of Perl $] variable
by ikegami (Patriarch) on Jul 12, 2025 at 21:04 UTC

    And for the version of things other than the current interpreter, one can use the version module.

    $ perl -Mv5.14 -e' use version qw( ); say version->parse( "5.040000" )->normal; ' v5.40.0

    (Also accepts a number as input, such as 5.040000 aka 5.04.)