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

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.

Replies are listed 'Best First'.
Re^5: Can't get Tk.pm to work
by poj (Abbot) on Jan 27, 2018 at 09:07 UTC

    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