in reply to Re^2: Can't get Tk.pm to work
in thread Can't get Tk.pm to work [SOLVED]

Forgive my skepticism. You can confirm or refute this easily enough with locate -r /bin/perl$.

You could also say which version of ubuntu you have installed so we can determine which perl is the interloper.

Replies are listed 'Best First'.
Re^4: Can't get Tk.pm to work
by igoryonya (Pilgrim) on Jan 26, 2018 at 22:46 UTC
    This resolves to:
    /snap/core/3604/usr/bin/perl /snap/core/3748/usr/bin/perl /snap/core/3887/usr/bin/perl /usr/bin/perl
    Then I did the following:
    for var_p in `locate -r /bin/perl$`; do echo $var_p; $var_p -v| grep ' +(v'; perl -le 'print "-" x 150;'; done
    It gave me the following results:
    This is perl 5, version 22, subversion 1 (v5.22.1) built for x86_64-li +nux-gnu-thread-multi ---------------------------------------------------------------------- +-------------------- /snap/core/3748/usr/bin/perl This is perl 5, version 22, subversion 1 (v5.22.1) built for x86_64-li +nux-gnu-thread-multi ---------------------------------------------------------------------- +-------------------- /snap/core/3887/usr/bin/perl This is perl 5, version 22, subversion 1 (v5.22.1) built for x86_64-li +nux-gnu-thread-multi ---------------------------------------------------------------------- +-------------------- /usr/bin/perl This is perl 5, version 22, subversion 1 (v5.22.1) built for x86_64-li +nux-gnu-thread-multi ---------------------------------------------------------------------- +--------------------
    According to results, all of them have version 5.22.1
    then I did: perl -le 'print for @INC;', it gave me:
    /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.22.1 /usr/local/share/perl/5.22.1 /usr/lib/x86_64-linux-gnu/perl5/5.22 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.22 /usr/share/perl/5.22 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base .
    None of the paths show 5.20.2, so, I don't get it, where cpan gets it from.

      I assume you have Ubuntu 16.04.1 LTS; x86_64, was this a new install or an upgrade from a previous Ubuntu version ? If so, what was previous version ?

      update Looks like perl v5.20.2 came with Ubuntu 15.04

      poj
        I always upgrade