On Thursday, January 21, 2016, Bruce Gray <bruce.g...@acm.org> wrote: > On Jan 21, 2016, at 2:36 AM, Steve Mynott <steve.myn...@gmail.com> wrote: > > On 21 January 2016 at 01:40, Darren Duncan <dar...@darrenduncan.net> wrote: > >> On 2016-01-20 5:02 PM, ToddAndMargo wrote: > > There are at least two source code translators in progress: > > http://search.cpan.org/dist/Perl-ToPerl6/ > > https://github.com/Util/Blue_Tiger/ ... > I am the author of one of the translators (Blue Tiger), > and I welcome feedback on which parts are missing that > would (be|have been) useful to you; it will help me prioritize development. > > For automated translation, see > http://docs.perl6.org/language/5to6-nutshell#Automated_Translation > Blue Tiger (p526) and Perl-ToPerl6 (perlmogrify) are the most useable. > Perlito's website is down. > > ( For manual translation, read all of the 5to6-* docs at the top of > http://docs.perl6.org/language.html , or email me ). > > Below, I have a terminal log of installation and execution of both > translators. ..
Perl 5 source ========== > my @aaa = qw( a b c d e f g ); > for my $c (@aaa) { Perl::ToPerl6 ========= > my @aaa = qw ( a b c d e f g ); > for (@aaa) -> $c { Blue_Tiger ======== > my @aaa = < a b c d e f g >; > for @aaa <-> $c { For the example Perl 5 input I like the Blue_Tiger translation, except I haven't so far found an description of the '<->' operator. Why would Blue_Tiger prefer it to the '->' operator which I've seen in all the examples I can remember seeing? Thanks. Cheers! -Tom