Can Raku and Perl 5 Run on Same Ubuntu With Switching

I am using a desktop with Ubuntu 20.04. I have Perl 5 installed. I will be installing Raku. Before I install Raku, I want to make sure that I can switch between them, when running a Perl script.

Is it possible to have Raku and Perl 5 both installed and available on Ubuntu, with a switch script that will make one or the other the default Perl when running a script?


Solution 1:

Yes, they are two completely different languages. Perl5 you will run it in scripts and command line as perl, and Raku as raku. There is no such switch, as the languages are not supported (although raku can run Perl code under certain conditions, Perl5 cannot run Raku code).