Coming from a Perl 5 background, what are the advantages of moving to Perl 6 or Python?
Edit: If you downvoted this because you think it's just flamebait, read the answers below. They're not raving arguments; they're well-written discussions of the pros and cons of each language. Give the Stack Overflow community some credit.
...
Perl 6 has been under development for over 8 years now, and (as ever) there seems to be no end in sight. However, it has had a reasonable implementation for some time, Pugs, and even has multiple implementations now.
When I last took a look at Perl 6 a few years ago, it seemed to me that there were lots of interesting ideas, but that e...
Perl 6 has really shaped up in terms of which features we can expect to see implemented in the final language, when it comes. Some of them are already available through Perl 6 modules for Perl 5 from CPAN. So which features are most compelling, exciting, nifty, eagerly awaited, etc.?
Please try to limit yourself to one feature per ans...
Perl 6 seems to have an explosion of equality operators. What is =:=? What's the difference between leg and cmp? Or eqv and ===?
Does anyone have a good summary?
...
Given an alternation like /(foo|foobar|foobaz)/ does Perl 6 make any promises about which of the three will be used first, and if it does where in the documentation does it make that promise?
See the related question Does Perl currently (5.8 and 5.10) make any promises about the order alternations will be used?.
...
Hi all,
I've got myself a copy of Rakudo and I'd love to give it a test drive. After looking around the Internet I found some code snippets of cool Perl 6 stuff, but no complete scripts. Any sites that make practical Perl 6 scripts available would be appreciated.
Thanks guys, Ehtyar.
...
Perl has been one of my go-to programming language tools for years and years. Perl 6 grammars looks like a great language feature. I'd like to know if someone has started something like this for Ruby.
...
Parrot is the virtual machine originally designed for Perl 6.
What technical capabilities does the Parrot VM offer that competing virtual machines such as the Java Virtual Machine (JVM)/Hotspot VM and Common Language Runtime (CLR) lack?
...
Could someone provide a link of material where to start with Perl 6?
Also could someone point to real application already developed with Perl 6?
...
Hello! Can someone tell me, why the "opendir" doesn't work?
#!/usr/bin/env perl6
use v6;
my $file = 'Dokumente/test_file';
if ( my $fh = open $file, :r ) {
for $fh.lines -> $line {
say $line;
}
} else {
say "Could not open '$file'";
}
my $dir = 'Dokumente';
my $dh = opendir $dir err die "Could not open $dir: $!";
...
I have the opportunity to take a two day class on Perl 6 with the Rakudo Compiler.
I don't want to start a religious war, but is it worth my time? Is there any reason to believe that Perl 6 will be practical in the real world within the next two years? Does anyone currently use it effectively?
Update
I took the class and learned a lot...
What is the current state of Perl 6, is it production-ready?
Where do we stand right now?
There are many programmers curious about the current progress of Perl 6.
There are also two other topics open on on reddit and http://perlmonks.org/?node_id=835419 about this.
...
If a specific release date is not available (as I suspect it is not), can you provide resources for tracking how close it is to the desired feature set that allows release.
I'm not necessarily asking for a percentage gauge, or X of Y features completed list. A list of bugs marked in whichever section of the perl RT instance that's trac...
Trying the -v switch, I get the parrot svn revision:
$ perl6 -v
This compiler is built with the Parrot Compiler Toolkit, parrot revision 45822.
but how do I know the rakudo version, either a vx.xx or {some-git-hash}?
Thanks,
...
Each time I have downloaded a new copy of Rakudo Perl 6, I have run the following expression just to get an idea of its current performance:
say [+] 1 .. 100000;
And the speeds have been increasing, but each time, there is a noticeable delay (several seconds) for the calculation. As a comparison, something like this in Perl 5 (or oth...
I just built Rakudo and Parrot so that I could play with it and get started on learning Perl 6. I downloaded the Perl 6 book and happily typed in the first demo program (the tennis tournament example).
When I try to run the program, I get an error:
Divide by zero
current instr.: '' pc -1 ((unknown file):-1)
I have my perl6 binary in...
Im playing around with perl6 lately and was searching for a project similar to cpan. I found cpan6 but i think there is no perl6 code yet.
So im looking for some alternative that does not necessarily aim to be a long term solution but is capable to maintain modules and is written in perl6.
As rakudo development goes it might be possibl...
I am trying to add new methods to an object dynamicaly.
Following code works just fine:
use SomeClass;
my $obj = SomeClass.new;
my $blah = 'ping';
my $coderef = method { say 'pong'; }
$obj.^add_method($blah, $coderef);
$obj.ping;
this prints "pong" as expected, whereas the following will not work as expected:
use SomeClass;
my $...
I don't know how to load de parrot SDL module in rakudo. I've found a example to do that with pir code.
But... there is any way to load pir SDL module into rakudo with perl code?
...
I've been thinking about learning Perl. Should I learn Perl5 or start with Perl6?
...