On 2019-12-13 11:07, Mark Senn wrote:
If I am not mistaken, `use v6` is only useful if you have more than
one version of Perl6/Raku loaded on your system. I could be wrong
though.
I think the main purpose is so that if somebody tries to run a Raku
program with Perl 5 they will get an error message.
Every Raku program I write now gets a
use v6.d;
statement. That's a note to myself for which language specification I
used when I wrote it and will provide a clue if I need to debug
something later because of version problems.
(I read the note from someone about a finer grained control is necessary
and agree with that.)
-mark
Hi Mark,
I have Perl 5 and Perl 6 both installed on my Linux systems.
Usually I only have Perl 6 installed on Windows computers I service. I
have never had a conflict on either.
On my Linux system, I run Fedroa and that uses the Red Hat
Package Manager (RPMs). As long as you stay with the repo's
and RPM there will not be a mix up.
My first line in all my Linux programs is
#!/usr/bin/end perl6
On the Windows side, I run my programs with
perl6 xxx.pl6
The main issue I have come across, is when I am testing code
on the Linux side and type `perl` instead of `perl6` and wonder
why it looks so weird. I can be a bit of a klutz that way.
Perl 5 compiles a lot faster that does Perl 6 and Perl 5's
libraries are much more mature. That being said, Perl 6
is my go to language. Perl 5's sub declarations drive
me nuts. If you are not careful with Perl 5, it can become
a `write only` language, but that can be said of any language.
-T