in reply to Re: "symbol lookup error" message help
in thread "symbol lookup error" message help

Here's what I don't understand:
I ran the following:


> which cpanm /bin/cpanm > head -n 1 /bin/cpanm #!/usr/bin/perl

I know that /usr/bin/perl on this machine is 5.26.3, yet if I look at the most recent cpanm build.log file, it says:

cpanm (App::cpanminus) 1.7044 on perl 5.026003 built for x86_64-linux- +thread-multi

Why does the log file list perl version 5.026003 when /usr/bin/perl is 5.26.3?

Replies are listed 'Best First'.
Re^3: "symbol lookup error" message help
by Corion (Patriarch) on Feb 03, 2023 at 22:02 UTC

    Because $], the variable containing the Perl version number has the value 5.026003. See the documentation in perlvar.

Re^3: "symbol lookup error" message help
by ikegami (Patriarch) on Feb 05, 2023 at 19:23 UTC

    5.026003 is 5.26.3.

    5.026003 |_||_| 26 3
Re^3: "symbol lookup error" message help
by Anonymous Monk on Feb 05, 2023 at 19:37 UTC
    See "perldoc version" (version on the CPAN).

    perl -le 'print $]'
    5.026003
    perl -le 'print $^V'
    v5.26.3
    perl -Mversion -le 'print version->parse("5.026003")->normal'
    v5.26.3
    perl -Mversion -le 'print version->declare("v5.26.3")->numify'
    5.026003