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
In reply to Re: "Installed" Perl 5.34 , sort of
by kcott
in thread "Installed" Perl 5.34 , sort of
by misterperl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |