in reply to "Installed" Perl 5.34 , sort of
G'day misterperl,
You may find it's easier to use Perlbrew.
This won't mess with the system Perl. (See ++choroba's comments re that.)
$ /usr/bin/perl -v This is perl 5, version 32, subversion 1 (v5.32.1) built for x86_64-cy +gwin-threads-multi (with 6 registered patches, see perl -V for more detail) ...
You can have multiple versions of Perl installed.
$ perlbrew list * perl-5.34.0 perl-5.33.5 perl-5.32.0 perl-5.30.0
You can very easily switch between the different Perl versions you have installed.
$ which perl /home/ken/perl5/perlbrew/perls/perl-5.34.0/bin/perl $ perlbrew switch perl-5.32.0 $ which perl /home/ken/perl5/perlbrew/perls/perl-5.32.0/bin/perl $ perlbrew switch perl-5.34.0 $ which perl /home/ken/perl5/perlbrew/perls/perl-5.34.0/bin/perl
If you start your scripts with the shebang
#!/usr/bin/env perl
they will run using the current (`which perl`) version. This can be very useful when troubleshooting why a script worked successfully under one Perl version but not another: just run the script; switch version; run the script again.
Installation of Perlbrew is straightforward; as is the installation of Perl versions. There's no need to go through the laborious effort of installing Perl by hand; there's no need to fiddle with $PATH; there's no need to change shebang lines.
I've used Perlbrew on many different platforms for many years (1 to 2 decades) and can highly recommend it. Many other monks also use Perlbrew so, if you run into difficulties, there's plenty of help available.
— Ken
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: "Installed" Perl 5.34 , sort of
by ikegami (Patriarch) on May 18, 2022 at 18:02 UTC | |
by kcott (Archbishop) on May 19, 2022 at 01:50 UTC | |
by ikegami (Patriarch) on May 19, 2022 at 13:29 UTC | |
|
Re^2: "Installed" Perl 5.34 , sort of
by misterperl (Friar) on May 18, 2022 at 17:15 UTC | |
by kcott (Archbishop) on May 19, 2022 at 02:22 UTC | |
by misterperl (Friar) on May 20, 2022 at 13:35 UTC | |
by kcott (Archbishop) on May 21, 2022 at 04:53 UTC | |
by misterperl (Friar) on May 20, 2022 at 14:59 UTC | |
by hippo (Archbishop) on May 20, 2022 at 15:16 UTC | |
by kcott (Archbishop) on May 21, 2022 at 05:16 UTC |